Better way to animate an entering element with `@keyframes`
I was building a demo playing around with an "entering" and "leaving" full page element using both transform and @keyframes, I'm satisfied with the
transform
transform
result but the
@keyframes
@keyframes
one involved a lot of
js
js
to make the animation "goes backwards" when the user hits the "toggle" button, there is a better approach for it? here's my pen: https://codepen.io/eduruiz/pen/oNaErPr