My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
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.