I'm getting started again with gsap after many years. I'm having trouble animating from origin points. I basically have a rectangle div in the center of the page inside a container to close in on itself left to right. Which properties would I need to transform to achieve this? I have attached a gif of what I would like to achieve.
TransformOrigin help
in GSAP
Posted
Hi all,
I'm getting started again with gsap after many years. I'm having trouble animating from origin points. I basically have a rectangle div in the center of the page inside a container to close in on itself left to right. Which properties would I need to transform to achieve this? I have attached a gif of what I would like to achieve.
Many thanks,
J