Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
5 - Performant Animations
.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