Skip to content

Commit b6e890c

Browse files
committed
append new definitions with same name
1 parent 0a71d1f commit b6e890c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jquery.keyframes.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,15 @@
6262
var $frameStyle = $("style#" + frameData.name);
6363

6464
if ($frameStyle.length > 0) {
65-
$frameStyle.html(css);
65+
$frameStyle.append(css);
6666

6767
var $elems = $("*").filter(function() {
6868
this.style[animationString + "Name"] === frameName;
6969
});
7070

7171
$elems.each(function() {
72-
var $el, options;
73-
$el = $(this);
74-
options = $el.data("keyframeOptions");
72+
var $el = $(this);
73+
var options = $el.data("keyframeOptions");
7574
$el.resetKeyframe(function() {
7675
$el.playKeyframe(options);
7776
});

0 commit comments

Comments
 (0)