-
Zuriel
javascript angularjs angularjs-scope ng-animate tweenmax
angular.module(‘AppAnimations’, []) .animation(‘ecocool-in’, [‘$rootScope’, function() {return {setup: function(element) {TweenMax.set(element, {opacity:0, right:’100px’, width:’100%’, position:’aboslute’})TweenMax.set($(‘body’), {overflow: ‘hidden’})},start: function(element, done) {TweenMax.to(element, .6, {delay:.6,opacity:1, right:0, ease:Power2.easeOut, onComplete:function() {done();TweenMax.set(element, {opacity:1, right:0, width:’100%’, position:’relative’})TweenMax.set($(‘body’), {overfl