Jump to content
Search Community

Mike G

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Mike G

  1. I am having what I am sure is a bizarre and uncommon problem. I'm in react, and doing the simplest of tweens. The problem is I'm wanting it to zoom in from 0 values, rather than from the starting position to zero. The documentation clearly says set() is like a 0 duration tween to push the element into the starting position, but when I do this it actually animates for 1 second. When I try to() with duration 0, it does the same thing. Duration works for any numbers above 1, but not below 1. Why is it not recognizing 0 duration? It's being done in a react componentDidMount() function. Any help would be appreciated!

    TweenLite.set(document.getElementById("masterModal"), {
    scale: 1,
    opacity: 1
    });
×
×
  • Create New...