Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 6d708e7

Browse files
committed
demo now working in safari
1 parent a702be7 commit 6d708e7

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎keyframes.spritesheet.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@
6464
var existingAnimation = this.css(vendorPrefix + 'animation');
6565
if(existingAnimation == ""){
6666
existingAnimation = this[0].style.animation;
67-
eaArray = existingAnimation.split(' ');
68-
if(eaArray[eaArray.length-1] != "none"){
69-
animate = existingAnimation + ', ' + animate;
67+
if(existingAnimation){
68+
eaArray = existingAnimation.split(' ');
69+
if(eaArray[eaArray.length-1] != "none"){
70+
animate = existingAnimation + ', ' + animate;
71+
}
7072
}
7173
}else{
7274
if(existingAnimation.split(' ')[0] != "none"){

‎keyframes.spritesheet.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)