Jump to content
Search Community

onedayitwillmake

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by onedayitwillmake

  1. Hi I'm wondering if this already exist in TweenMax, or if not, if it's possible to request for a feature here.

     

    Sometimes when working on something, you might want to have an update loop temporarily (say mousedown, until mouse up). The way to do that in JS would be to create a request animation frame, and then kill it later etc etc.

     

    However since TweenMax is already running one in the background, I was wondering if it was possible to hook into it somehow. Taking advantage of the nice, remove / pause features TweenMax provides

     

    I imagine something like, (or whatever you guys see fit!)

    var updateReference = TweenMax.onEnterFrame(scope, myFunction);
    updateReference.pause();
    updateReference.resume();
    updateReference.remove();
  2. I'm attempting to tween a div to a relative position, however it seems to no longer be working using the same syntax that previously used to work.

     

     

    TweenMax.to( div, duration, { delay: delay, ease: Cubic.easeInOut, x: "100"});

     

    Any ideas?

×
×
  • Create New...