angular-gsapify-router
Angular UI-Router animation directive allowing configuration of state transitions using GSAP
Demo
http://homerjam.github.io/angular-gsapify-router/
Installation
$ npm i -S angular-gsapify-router
Usage
First include TweenMax (part of GSAP) on your page or in your build
In your main app file eg. app.js
:
// Setup dependenciesangular // Configure app;
In your templates:
<!-- add 'gsapify-router' class to ui-view element -->
scrollRecall directive
Optionally add scrollRecall
directive to remember and return to scroll position of previous state:
<!-- add scrollRecall directive -->
FAQ
My views jump around when the transition occurs, WTF?!
This happens because during the transition the incoming and outgoing views both exist within the dom as sibling nodes. One solution is to use absolute/fixed positioning, otherwise you can try adding the following to your css.