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.

ngAnimate cache prevents transitions on added classes in FF #8813

Closed
@mike-suggitt

Description

@mike-suggitt

ngAnimate uses "getElementAnimationDetails" to cache CSS transitions on load but currently i'm aiming to ensure that onload there are no transitions and then after load I assign a class that then enables transitions on new items.

Example sass might be:

.parent {
     .element {}

     &.isloaded {
          .element {
                transition: 5s linear all;
           }
     }
}

if I dynamically apply the "isloaded" class later on then the cache prevents ngAnimate from attaching the relevant "ng-enter" and "ng-enter-active" classes.

If I comment out the cache logic then the element gets re-evaluated and transitions are applied.

P.S seems to work in chrome bizarrely but not in firefox

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions