Sign in
Log inSign up
Changing box-shadow color in CSS?

Changing box-shadow color in CSS?

Sharon Chaisky's photo
Sharon Chaisky
·Apr 8, 2016

I'm playing with a bunch of elements where I'm transitioning the box-shadow on :hover.

The problem is, I just need to change the color of the box-shadow. But every time I do this, I have to write the whole box-shadow rule as there's no box-shadow-color property in CSS.

Is there a more logical way of doing this?

I think a box-shadow-color property is very needed.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct