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

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

Closed
@intellix

Description

@intellix

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions