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 applying transition style to element causes undesirable behavior #10281

@oste

Description

@oste

I am fading an element in when shown. The issue I am facing is that ngAnimate is adding transition style to the element. This is causing undesirable results because the element is given additional styles after this transition style is applied.

Here is a simple example showing how a small delay in adding height style will cause the height to transition as well. http://plnkr.co/edit/zeyoWWYfLlXcVMM67XiH

If this is the expected behavior how would I prevent the height from animating as well. Once again, the desired result is to only have the element fadeIn and not have the height transition.

Here is the line of code that adds the transition style I am referring to https://github.com/angular/angular.js/blob/master/src/ngAnimate/animate.js#L1915

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions