Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

refactor(carousel): use ngAnimate #1878

Closed

Conversation

chrisirhc
Copy link
Contributor

This also fixes issues with ngAnimate.

Closes #1350

Need to verify if this fixes #1513 , but it should fix it too.
Should fix #1185 as well.

The reason the chore(demo) commit is here is because ngAnimate currently breaks the carousel, as such, it should only be added to the demo once this PR is merged.

The carouselAnimator is used to animate the classes. The class names are configurable by calling $decorator on the carouselAnimator.

Once this PR is merged, we can start merging the other PRs related to animations. This should probably be the first PR in line right after enabling the ngAnimate so that nothing (else) breaks on the demo.

@chrisirhc chrisirhc added this to the $animate milestone Mar 3, 2014
chrisirhc and others added 4 commits March 3, 2014 02:20
- move animation logic into animator
This allows animation logic to be overridden through a decorator.
Still assign to the active variable in the scope for now.
Need this because $animate.queue was added in 1.2.12 .
@joshkurz
Copy link
Contributor

joshkurz commented Mar 3, 2014

+1 great job

@kencaron
Copy link

This is awesome @chrisirhc. Works great.

I'm actually controlling a Foundation 5 "orbit" carousel using this directive. (not my call to go with Foundation)
angular-foundation looks to be a direct port from this project, however it is currently missing a carousel directive. Just find it funny how easy it was to just plug it in with some minor template changes. Thanks!

@korsvanloon
Copy link

I checked out chrisirhc:feature/carousel-animate-pr and found a little bug.
If you randomly click the circle buttons rapidly, the various results are a bit weird. Sometimes images are even stacked (making the height twice as long).

@chrisirhc
Copy link
Contributor Author

Closing in favor of #2699 .

@chrisirhc chrisirhc closed this Sep 15, 2014
@karianna karianna modified the milestones: ngAnimate, 0.13.0 Apr 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants