Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

$animate.enter() to prepend an item #6274

Closed
intellix opened this issue Feb 15, 2014 · 1 comment
Closed

$animate.enter() to prepend an item #6274

intellix opened this issue Feb 15, 2014 · 1 comment

Comments

@intellix
Copy link
Contributor

I'm creating a carousel that displays multiple items. I see with $animate.enter(element, parentElement, afterElement) there is an afterElement parameter but I don't want to place my element after anything, I want it to be prepended and then slid in, from the left.

< [ 1, 2, 3, 4 ] >
I expected something like: $animate.enter(4, parent, false/null) to produce the following:
< [ 4, 1, 2, 3 ] >

I know that there is $animate.enter() and $animate.leave() but the latter removes the DOM from the element entirely.

@matsko
Copy link
Contributor

matsko commented Apr 4, 2014

Fixed as of 1cb8584. Note that this will only apply to 1.3.x.

@matsko matsko closed this as completed Apr 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants