daafiejd

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

1 Newbie

About daafiejd

  • Rank
    Newbie
  1. daafiejd

    Defining start situation

    @Sahil Oh jeez, it's that simple... Thank you so much. This will also help me in further tweening!
  2. daafiejd

    Defining start situation

    Hi there, I'm very new to GSAP and JS in general, but I really love all the cool stuff that's capable off. Now I've created a tween and some functionality with it. It's all working, but not like I would want it to. For example: how do I define a starting situation from where the animation should take place. I know about the .from method, but when you look at my overlay, it would be in the way the whole time until you click the burger. When I code something hard in my in-line style or CSS like this: .overlay { right: 100%; } It doesn't work either. So I guess my question would be: how do I define a starting situation for a div that should slide on screen when a button is toggled on and slide off when the button is toggled off. My CSS could be off, my JS logic could be off... Tell me please, it would be greatly appreciated! Kind regards