update components

This commit is contained in:
Luke Pulverenti 2015-07-01 11:51:20 -04:00
parent 5bd79b1ab7
commit 93ad16971d
10 changed files with 43 additions and 18 deletions

View file

@ -1,3 +1,28 @@
### 2.1.1 - *July 1 2015*
* Add Animation.timeline getter
* Add AnimationEffect.parent getter
* Make AnimationEffectTiming (returned by AnimationEffect.timing) attributes mutable
* Expose the Animation constructor
* Change custom effects from AnimationEffects to onsample functions. Custom effects should now be created by setting the onsample attribute of a KeyframeEffect.
For example, this is deprecated:
var myEffect = new KeyframeEffect(
element,
function(timeFraction, target, effect) {
target.style.opacity = timeFraction;
},
1000);
var myAnimation = document.timeline.play(myEffect);
and this should be used insead:
var myEffect = new KeyframeEffect(element, [], 1000);
effect.onsample = function(timeFraction, effect, animation) {
effect.target.style.opacity = timeFraction;
};
var myAnimation = document.timeline.play(myEffect);
### 2.1.0 - *June 15 2015*
* Fix bug affecting GroupEffects with infinite iteration children
* Add GroupEffect.firstChild and GroupEffect.lastChild