I am currently writing a jQuery plugin for creating / managing CSS transitions, and I have found this weird behavior with transition durations.
Apparently, while the transition is in progress, any changes to the duration property are ignored, unless the properties that are transitioning receive a different value. The duration itself does not change the transition.
Below is some code that shows an example of this, and below are some links to jsFiddle to better understand the transition behavior I'm trying to achieve.
.t1 {
-webkit-transition-duration: 5s;
-webkit-transition-property: width;
width: 500px;
}
.t2 {
-webkit-transition-duration: 200ms;
-webkit-transition-property: width;
width: 500px;
}
.t3 {
-webkit-transition-duration: 200ms;
-webkit-transition-property: width;
width: 501px;
}
, ?
UPDATE
, , , - .
( www.w3.org/TR/css3-transitions/#starting)
, , , "--", " " " " .