Jump to content


Help requested on page turn animation

Go to solution Solved by jamiejefferson,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Using the "Simple 3-D Hover Flip" demo as a starting point, I created the linked codepen. My goal was to create a book where you can flip through the pages by clicking on them.  Everything works as I would expect except turning page 1 does not reveal page 2.  Any ideas on why it does not display the next <div> in the page stack?




See the Pen lfyjm by hackfin (@hackfin) on CodePen

Link to comment
Share on other sites

  • Solution

Looks like you're flipping both pages at the same time.


In the .pageWrapper click function, $(this).find(".page") is selecting both pages, but if I change it to $(this).find(".page")[1] then page2 remains in place underneath.

  • Like 2
Link to comment
Share on other sites

Thanks.  I knew it had to be somthing simple I was overlooking.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.