Skip to content

Commit

Permalink
Fixed animated class being hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeboer committed Mar 17, 2015
1 parent 8aca072 commit bb2ebbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/wow.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
var target;
if (event.type.toLowerCase().indexOf('animationend') >= 0) {
target = event.target || event.srcElement;
return target.className = target.className.replace('animated', '').trim();
return target.className = target.className.replace(config.animateClass, '').trim();
}
};

Expand Down
2 changes: 1 addition & 1 deletion dist/wow.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class @WOW
resetAnimation: (event) ->
if event.type.toLowerCase().indexOf('animationend') >= 0
target = event.target || event.srcElement
target.className = target.className.replace('animated', '').trim()
target.className = target.className.replace(config.animateClass, '').trim()

customStyle: (box, hidden, duration, delay, iteration) ->
@cacheAnimationName(box) if hidden
Expand Down

0 comments on commit bb2ebbb

Please sign in to comment.