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.

1.2.0-rc2: ngShow translateX animation #3933

Closed
@geofflamrock

Description

@geofflamrock

Having some issues with ngShow animations in 1.2rc2 when using a translateX() animation moving an element from off to on the screen, where the animation is not being run at all, instead the element is just shown straight away.

Plunkr: http://plnkr.co/edit/b86o7WSU8w3sBnXebQQi?p=preview

Issue only appears to happen using Chrome stable 29.0.1547.66 m, have tested Firefox and IE and seem ok.

I think it might be the following lines in ngAnimate/animate that are causing the issue:

//temporarily disable the transition so that the enter styles
//don't animate twice (this is here to avoid a bug in Chrome/FF).
node.style[w3cTransitionProp + propertyKey] = 'none';
node.style[vendorTransitionProp + propertyKey] = 'none';

although not sure if it's something I've done wrong. If I comment these lines out the animation runs.

Was working in rc1 ok.

Thanks :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions