Hi,
I am trying to make it so, that each of my sections figure elements (containing images or video), rotateX in, from -90deg to 0. And animate out from 0 - 90deg.
But I am struggling to understand which way to do so.
This is what I am doing so far
https://codepen.io/akmalmo/pen/OJWEaKd
I would also like to have no extra white-space between the sections when I am animating the transform (rotateX). Hence I was thinking it would be a good Idea to add a different transformOrigin to the different states to and from. But it seems glitchy and maybe there is a better way to do so.
Also I am thinking my method above is probably just wrong right... perhaps I should only have one to or from, or fromTo... but with sort of all animations in one, with onEnter and onLeave. But yeah. Just can't get my head around it.
Would be super happy for any points in the right direction