Closed jonathansolorzn closed 8 years ago
Is this better than angular-ui-router-anim-in-out?, Will it be supported for long time?, Is it constantly developed or just a one time development project?
Its an alternative to that plugin, this is one is more recent.
The key difference is that this plugin is way more configurable - for example you can use functions to define transitions and set a priority to vary transition depending on to/from state. It also has more events to hook up to.
Additionally it uses JS rather than CSS for the transitions which means you can more easily create complex transitions of multiple properties.
I use it in virtually all my projects so its well maintained. It should always work with angular 1.x and ui-router as these projects have both reached maturity and are unlikely to change.
I see, isn't it available through bower?
How do I add TweenMax? Is it the same as install gsap? bower install gsap --save
?
Yep bower too, but npm seems better setup for build tools out of the box. Each to their own of course ; )
Ok, I'll move to npm, but I don't know how to load npm modules in the client index.html
right now...
it depends on your project as a whole for how you include tweenmax but the example shows one way of doing it
you can just use a script tag if not using a build tool
Hmmm, any tutorial link?, what build tool would you recommend?
I think the demo is linked in the description, or else you can look at the example folder of the repo.
I'd recommend learning the fundamentals first. Get to grips with gulp then try webpack
They begin here