Last active
August 9, 2017 12:38
-
-
Save IvanaSays/d3057f19f8a4ada4e74392dca6dcaf69 to your computer and use it in GitHub Desktop.
5 - Performant Animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
position: relative; | |
} | |
.box:before { | |
content: “”; | |
box-shadow: 1px 1px 1px rgb(0,0,0); | |
opacity: .5; | |
transition: .2s; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
} | |
.box.active:before { | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment