# Animation support in Ember 1.1

**URL:** <https://discuss.emberjs.com/t/animation-support-in-ember-1-1/1977>\
**Category:** Proposals\
**Created:** [July 30, 2013, 7:21pm UTC](https://discuss.emberjs.com/t/animation-support-in-ember-1-1/1977 "2013-07-30T19:21:49Z")\
**Posts on this page:** 1\
**Showing post:** 56

<div class="post-metadata">

**Author:** ![ppcano](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ppcano/32/14197_2.png) [@ppcano](https://discuss.emberjs.com/u/ppcano)\
**Post date:** [April 30, 2014, 6:35pm UTC](https://discuss.emberjs.com/t/animation-support-in-ember-1-1/1977/56 "2014-04-30T18:35:02Z")

</div>

I have implemented a route animation API which I would like to share to be considered, I think is simple and could be used on multiple cases:

My main requisites are:

- Be able to animate with CSS or JS.

- A transition should be a step in my route transition process.

**animation** hook supports returning a promise object on the same way than **‘model’, ‘beforeModel’ and ‘afterModel’** hooks.

I think, that having integrated animation in the chained promise of the route transition solves some of the @machty considerations.

We could test right now this approach if we rewrite HandlerInfo.resolve method (router.js) like this [example](https://gist.github.com/ppcano/1587da78e8496933ff1e).

```
.then(animation, null, this.promiseLabel("Animation"))

```

I am sharing a [working gist](https://gist.github.com/ppcano/7c1a934e434546cb747e) making animation with CSS classes bound to object properties which is the way I prefer. This examples requires to disable the renderTemplate default convention to have loaded all the route templates to have immediate animations.

Feedback?

---

_[View the full topic](https://discuss.emberjs.com/t/animation-support-in-ember-1-1/1977)._
