Jump to content
Search Community

todorone

Members
  • Posts

    1
  • Joined

  • Last visited

todorone's Achievements

0

Reputation

  1. Hey guys, Thanks a lot for such an awesome tweening library i'm a big fan, used it for 6 years in game dev, now diving into it on React application. I have a question: does TimelineMax respects .set() when restarting tween? Because it does not work for me - i tried all the combinations - set, to with 0 duration, etc. This is the code - first 2 operations works only first time playing animation and doesn't work when i call .replay() this.inAnimation = new TimelineMax({ paused: true }) .set(this.rootRef, { autoAlpha: 1, zIndex: 10, x: '0%', immediateRender: false }) .to(this.wrapperRef, 0, { x: '0%', rotationY: 0, immediateRender: false }) .fromTo(this.bgRef, this.props.duration * 0.95, { x: '100%', boxShadow:'0 0 10px 10px rgba(0, 0, 0, .5)', immediateRender: false }, { x: '0%', boxShadow:'0 0 20px 50px rgba(0, 0, 0, .5)', clearProps: 'boxShadow', delay: this.props.duration * 0.05 }) .fromTo(this.contentRef, this.props.duration * 0.5, { autoAlpha: 0, immediateRender: false }, { autoAlpha: 1, delay: this.props.duration * 0.5 }, 0) .fromTo(this.tipRef, this.props.duration * 0.5, { y: '75%', immediateRender: false }, { y: '0%', delay: this.props.duration * 0.5 }, 0)
×
×
  • Create New...