This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngAnimate - Providing only keyframe/keyframeStyles to $animateCss does nothing #12124
Comments
The comment before the return in question says:
(https://github.com/angular/angular.js/blob/master/src/ngAnimate/animateCss.js#L560) If that is correct, the documention needs to be updated. @matsko do you know if that is the case? |
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Jul 14, 2015
…s provided `$animateCss` is a fan of transition animations, but it turns out that if only a keyframeStyle is provided into the animation upon constrution then it will quit because it assumes that nothing will be animated (since no classes or styles are being applied). This patch ensures that a keyframe style can solely be applied to an animation triggered with `$animateCss`. ```js // this will now work as expected $animateCss(element, { keyframeStyle: '1s rotate' }).start(); ``` Closes angular#12124
Excellent find. This PR will fix this issue and we should have it ready for tomorrow's release (1.4.3): |
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Jul 14, 2015
…s provided `$animateCss` is a fan of transition animations, but it turns out that if only a keyframeStyle is provided into the animation upon constrution then it will quit because it assumes that nothing will be animated (since no classes or styles are being applied). This patch ensures that a keyframe style can solely be applied to an animation triggered with `$animateCss`. ```js // this will now work as expected $animateCss(element, { keyframeStyle: '1s rotate' }).start(); ``` Closes angular#12124 Closes angular#12340
netman92
pushed a commit
to netman92/angular.js
that referenced
this issue
Aug 8, 2015
…s provided `$animateCss` is a fan of transition animations, but it turns out that if only a keyframeStyle is provided into the animation upon constrution then it will quit because it assumes that nothing will be animated (since no classes or styles are being applied). This patch ensures that a keyframe style can solely be applied to an animation triggered with `$animateCss`. ```js // this will now work as expected $animateCss(element, { keyframeStyle: '1s rotate' }).start(); ``` Closes angular#12124 Closes angular#12340
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After realising that
keyframe
should actually bekeyframeStyles
for $animateCss I see that passingkeyframeStyles
alone will decide that there's nothing to do and return:closeAndReturnNoopAnimator()
.To get around this I have to do something like:
The text was updated successfully, but these errors were encountered: