Jump to content
Search Community

Jeff Pang

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Jeff Pang

  1. I have a animation sequence where I would like be broken down into steps and proceeding with each step by button click. And at the beginning of each steps before animating, .set() is used to initialize css properties before starting the animation. However, Timeline does not seem to respect the positions and proceed to set the next step's property just right after stopping at the end. e.g

     

    On 1st button click:

    Animate Step1 -  Set opacity to 0.1 and then animate sequence till the end of step 1

     

    On 2nd button click:

    Animate Step2 - Set opacity to 1 and then animate sequence till the end of step 2

     

    However, on the 1st button click, opacity is set to 0.1, animation proceed till end of step 1 AND then immediately set opacity to 1.

     

    Can someone please point out what I am doing wrong? Thanks

    See the Pen RGOoWo by jeffpang (@jeffpang) on CodePen

×
×
  • Create New...