Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngAnimate assumes transition is linear instead of using the value in CSS #12656

Open
wesleycho opened this issue Aug 22, 2015 · 4 comments · May be fixed by #13488
Open

ngAnimate assumes transition is linear instead of using the value in CSS #12656

wesleycho opened this issue Aug 22, 2015 · 4 comments · May be fixed by #13488

Comments

@wesleycho
Copy link
Contributor

There are two scenarios which are not being caught - the easing function in CSS when the transition is specified in the transition CSS property, and the easing function if it is specified in the transition-timing-function property.

Here is a stripped down example of the transition-timing-function situation.

Here is a plnkr, a stripped down example of the transition situation.

Note that $animateCss (& $animate as well it turns out) assumes that the easing function is linear instead of ease here.

This is a regression from 1.3.x

@Narretz
Copy link
Contributor

Narretz commented Aug 24, 2015

Thanks for reporting @wesleycho! Contrary to many other ngAnimate bug, this looks like it's not too difficult to fix. Do you think you could give a PR a shot?

@wesleycho
Copy link
Contributor Author

Sure, I'll try to put together a PR today

@trajano
Copy link

trajano commented Sep 5, 2015

Here's a plnkr that you can use http://plnkr.co/edit/rHRFzotMG5pZGeBKF8Lw?p=preview

matsko pushed a commit to matsko/angular.js that referenced this issue Dec 9, 2015
Previously, $animateCss wouldn't use transition styles that were on the element
before the animation process started. Precisely, transition property, timing-function
and delay were overwritten in the process.

Closes angular#12656
Closes angular#13333
Narretz added a commit to Narretz/angular.js that referenced this issue Dec 10, 2015
Previously, $animateCss wouldn't use transition styles that were on the element
before the animation process started. Precisely, transition property, timing-function
and delay were overwritten in the process.

Closes angular#12656
Closes angular#13333
@Narretz
Copy link
Contributor

Narretz commented Dec 10, 2015

We had some issues on Travis, so the commit was reverted

@Narretz Narretz reopened this Dec 10, 2015
Narretz added a commit to Narretz/angular.js that referenced this issue Dec 17, 2015
Previously, $animateCss wouldn't use transition styles that were on the element
before the animation process started. Precisely, transition property, timing-function
and delay were overwritten in the process.

Closes angular#12656
Closes angular#13333
@petebacondarwin petebacondarwin modified the milestones: 1.4.9, 1.4.10 Jan 21, 2016
@petebacondarwin petebacondarwin modified the milestones: 1.4.10, 1.5.1 Jan 28, 2016
@Narretz Narretz modified the milestones: 1.5.1, 1.5.x Feb 15, 2016
@Narretz Narretz modified the milestones: 1.5.x, Backlog Apr 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.