Joined April 2014
·

Nii Mante

LA
·
·

Posted to AngularJS: Scroll Animations over 1 year ago

Is the scroll-animation function apart of angular (i.e. a directive), or is that a normal html attribute?

Also, how can I add a css class dynamically if the element is on screen? My first plan was to use the 'fireupMarketingDesignAnimation' callback, and add the css in that function, but I'm not sure how I could add css to the specific element.

I essentially want to animate only if the item is on screen. I have css classes that I'm already using for animations (https://github.com/daneden/animate.css), but I just want to add them dynamically based on scroll position. Any advice?

Achievements
39 Karma
0 Total ProTip Views