Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Trigger animations when page changes using Velocity

$
0
0

@kgish wrote:

I would like to trigger a given animation specific to one or more elements (e.g. a collection of images within a given div) whenever a page is (re-)loaded or transitioned to.

I've tried putting this within the init() of the controller but this doesn't seem to work.

What does seem to work (although unpredictably) is firing off the animation within an Ember.run.later() but this depends on choosing a large enough value of wait which isn't very elegant and probably the wrong thing to do.

I've also tried Ember.run.scheduleOnce() but this is also not very dependable.

Sometimes transitioning works but refresh not, or vice versa.

At first glance Liquid Fire seemed promising, but it doesn't quite support what I'm looking for.

What would be the best approach?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles