Jump to content
Search Community

Jinx

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Jinx

  1. Hey PointC

     

    This change is supposed to happen on button click yes,  but when the user clicks the button I need to check if my header is opened, if it is the tween should be to black, if the header is not opened the tween should be to white. And when the user clicks the button again I need to reverse that timeline

     

    Cheers

  2. Hey Greg

     

    Sorry if I wasn't clear enough. I need to change the lines color dinamically. When you click the burger the lines will tween from black to red as per your example. But sometimes I need to tween them from black to white for example. So everytime I run that timeline I need to set those lines background dinamically. I think that what I need is the unvalidate method for what I have been reading.

  3. Hello

     

    When my website launches im creating a timeline and then saving it in an object so later I can control it's playback. Thing is, when I call that timeline again, I would like to pass a parameter that will change the background color of my animation dinamically.

     

    I know that the timeline is just an object, and going to _first.vars.background  I could change the color, but this is cumbersome. Is there a more direct approach so when I try to play or reverse my timeline I could pass parameters directly and change the burger background color?

     

    Thanks in advance :) 

    See the Pen MWawbQO by zebedal (@zebedal) on CodePen

×
×
  • Create New...