Share Posted February 16, 2022 Hey, I want to do this animation on the right hand side, where the picture comes in from the bottom and overlaps the old one. How could i do this? Link to comment Share on other sites More sharing options...
Solution Solution Share Posted February 16, 2022 Hi @initium, Moving an image from the bottom can be handled by translating the image on the Y axis from either off below (meaning the height of the viewable area) the viewable area to 0 or on the viewable area (0) to off the top (minus the height of the viewable area). Here is a verbose example to show you what I mean. See the Pen oNoodpo?editors=0010 by sgorneau (@sgorneau) on CodePen In a practical execution you'd want to compute things like the viewable area height and wrap the timeline buildout in logic to accommodate any number of slides and any variation on height/width. Hope this helps! Shaun 4 Link to comment Share on other sites More sharing options...
Author Share Posted February 16, 2022 Got it thanks! Link to comment Share on other sites More sharing options...
Share Posted February 16, 2022 You're welcome! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now