homerjam / angular-scroll-magic

An angular directive for ScrollMagic, define pins and tweens in markup
http://homerjam.github.io/angular-scroll-magic/
MIT License
18 stars 6 forks source link

Easing #7

Closed utiq closed 8 years ago

utiq commented 8 years ago

How can I add easing to the "to-vars"? for example: {x:-24000,ease:SteppedEase.config(24)}

homerjam commented 8 years ago

Have you tried defining the vars in your controller?

utiq commented 8 years ago

It worked!, thanks! I added: $scope.steppedEase = SteppedEase.config(24) in the controller, and: "to-vars" = "{'x': -24000, 'ease': steppedEase}" in the view