CSS3 Box Shadow Fade Out Effect
Posted
by
Eric Bergman
on Stack Overflow
See other posts from Stack Overflow
or by Eric Bergman
Published on 2012-09-17T03:35:06Z
Indexed on
2012/09/17
3:37 UTC
Read the original article
Hit count: 256
Is it possible to achieve a Fadeout effect with CSS3 Box Shadow?
Here's what I have so far? This only adds inset shadow to the vertical sides but I need to achieve a fade out effect at the top.
-moz-box-shadow: inset 5px 0 7px -5px #a4a4a4, inset -5px 0 7px -5px #a4a4a4;
-webkit-box-shadow: inset 5px 0 5px -5px #a4a4a4, inset -5px 0 5px -5px #a4a4a4;
box-shadow: inset 5px 0 7px -5px #a4a4a4, inset -5px 0 7px -5px #a4a4a4;
See the image below to see the Expected Results and what I currently have.
© Stack Overflow or respective owner