Skip to content

Commit

Permalink
reset animation-timing-function after animate()
Browse files Browse the repository at this point in the history
References madrobby#577
  • Loading branch information
mislav committed Sep 8, 2012
1 parent b98ee62 commit b504b3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/fx.js
Expand Up @@ -24,7 +24,8 @@
clearProperties[prefix + 'transition-duration'] =
clearProperties[prefix + 'transition-timing-function'] =
clearProperties[prefix + 'animation-name'] =
clearProperties[prefix + 'animation-duration'] = ''
clearProperties[prefix + 'animation-duration'] =
clearProperties[prefix + 'animation-timing-function'] = ''

$.fx = {
off: (eventPrefix === undefined && testEl.style.transitionProperty === undefined),
Expand Down
4 changes: 3 additions & 1 deletion test/fx.html
Expand Up @@ -203,10 +203,12 @@ <h1>Zepto effects tests</h1>

testKeyFrameAnimation: function(t){
t.pause()
var el = $('#keyframetest').anim('animName', 2)
var el = $('#keyframetest').animate('animName', 200)
defer(function(){
t.resume(function(){
t.assertStyle('animName', el, 'animation-name')
t.assertStyle('0.2s', el, 'animation-duration')
t.assertStyle('linear', el, 'animation-timing-function')
})
})
}
Expand Down

0 comments on commit b504b3f

Please sign in to comment.