DEV Community

Discussion on: Creating Pixel Art with CSS

 
jnschrag profile image
Jacque Schrag

Good catch! Looks like I wasn't paying close enough attention. That said, if your animation has two states, one way to approach it would be to have two pseudo elements (::before for default state & ::after for 2nd state) with box-shadow applied and alternate the opacity on those.

Or just make a gif. :)

Thread Thread
 
gypsydave5 profile image
David Wickes

Or just make a gif. :)

šŸ¤£šŸ¤£šŸ¤£