homerjam / angular-gsapify-router

Angular UI-Router animation directive allowing configuration of GSAP state transitions based on priority
http://homerjam.github.io/angular-gsapify-router/
MIT License
85 stars 16 forks source link

Where can I see a list of the animation names that this comes with? #19

Closed jonathansolorzn closed 8 years ago

homerjam commented 8 years ago

They begin here

jonathansolorzn commented 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?

homerjam commented 8 years ago

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.

jonathansolorzn commented 8 years ago

I see, isn't it available through bower?

jonathansolorzn commented 8 years ago

How do I add TweenMax? Is it the same as install gsap? bower install gsap --save ?

homerjam commented 8 years ago

Yep bower too, but npm seems better setup for build tools out of the box. Each to their own of course ; )

jonathansolorzn commented 8 years ago

Ok, I'll move to npm, but I don't know how to load npm modules in the client index.html right now...

homerjam commented 8 years ago

it depends on your project as a whole for how you include tweenmax but the example shows one way of doing it

homerjam commented 8 years ago

you can just use a script tag if not using a build tool

jonathansolorzn commented 8 years ago

Hmmm, any tutorial link?, what build tool would you recommend?

homerjam commented 8 years ago

I think the demo is linked in the description, or else you can look at the example folder of the repo.

homerjam commented 8 years ago

I'd recommend learning the fundamentals first. Get to grips with gulp then try webpack