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 doesn't trigger enter method on first page load #10536

Closed
@eeglbalazs

Description

@eeglbalazs

After upgrading to v1.3.8 ngAnimate doesn't trigger enter method on first page load.
I'm using Javascript based animations with the standard Angular Router.

Like:

ngModule.animation('.an-reveal', function () {
    return {
      enter: function(element, done) {
        element.velocity('fadeIn', { delay: 300, duration: 600, complete: done })
        return function() {
          element.stop()
        }
      },
      leave: function(element, done) {
        element.velocity('fadeOut', { duration: 300, complete: done })
        return function() {
          element.stop()
        }
      }
    }
  })

and I have <main ng-view class="an-reveal"></main>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions