Jump to content
GreenSock

OSUblake last won the day on November 19 2022

OSUblake had the most liked content!

OSUblake

Moderators
  • Posts

    9,196
  • Joined

  • Last visited

  • Days Won

    705

Everything posted by OSUblake

  1. Hi failure13, It's kind of hard to tell what you are trying to do, but it looks like you are forcing Angular to act like jQuery, which is a no-no. In the Angular world, jQuery should only be used as a last resort. There is usually an Angular way of doing things i.e. ng-click, ng-mouse*, ng-key*, etc... I also noticed in your screenshot that you created an animation module for ng-scope, which is another no-no. ng-scope can be used by other elements so your animations may not work correctly. Only create animation modules with class names that you create. I created a Plunk that uses no jQuery to help you out. The collapse directive uses the $animate service and will work with an ng-repeat inside of it. http://plnkr.co/edit/wHUybThuY2qt4iAv5k7u?p=preview Blake
  2. I just started using GSAP and really love it, but trying to get the `updateTo` method to work had me stumped for several hours. The documentation is VERY misleading. I read the part about it not working for plugin values, but then the example shows CSS values with comments describing those values. This makes it seem like it does work with the CSSPlugin: //create the tween var tween = new TweenMax(mc, 2, {x:100, y:200, opacity:0.5}); //then later, update the destination x and y values, restarting the tween tween.updateTo({x:300, y:0}, true); //or to update the values mid-tween without restarting, do this: tween.updateTo({x:300, y:0}, false); Can the documentation be updated with another example so other people don't assume the same thing? Thanks
×