Jump to content
Search Community

Valentin__

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Valentin__

  1. Thanks for your answer :)

    I will try to explain a little better what I would like to do.

    The animation consists in making a book spin endlessly.
    At the first click on the book it should finish its rotation to its initial position (0deg) then open
    At the second click it must close then restart the infinite rotation

    I understood that mixing GSAP and CSS was not good, but I did this because I can't use the animation controls (nothing works on my React project)

    Sorry for my English, I'm French :/

  2. Hi all,
     

    I have several problems with the animation of my book.
     

    1. I tried to make a rotateY on my book but the controls did not work on my code (play(), pause(), paused()), so I make a rotate in CSS that I disable by adding or removing a class
     

    2. The animation works perfectly on the first opening and closing cycle, but on the following ones the currentAngle variable is buggy
     

    3. I would like to be able to click on the book only if the animation is finished

    Here is my codehttps://codesandbox.io/s/sad-mcnulty-7k49my

     

    I really need your help ;)

    Thanks to all

     

×
×
  • Create New...