Skip to content

Commit 70f0d07

Browse files
committed
fix dependencies and examples. drop bower support.
1 parent 6e236fa commit 70f0d07

File tree

13 files changed

+91
-103
lines changed

13 files changed

+91
-103
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@
2323
ehthumbs.db
2424
Thumbs.db
2525
node_modules
26-
bower_components
27-
2826
prepros.cfg

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 jQueryKeyframes
3+
Copyright (c) 2014 jQuery.Keyframes (http://keyframes.github.io/jQuery.Keyframes/)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
jQuery.Keyframes
22
===========
33

4-
![](https://badge.fury.io/gh/jQueryKeyframes%2FjQuery.Keyframes.svg)
4+
![](https://badge.fury.io/gh/Keyframes/jQuery.Keyframes.svg)
55

66
jQuery-Keyframes allows dynamic generation of CSS3 keyframes with callback events and other niceness.
77

bower.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

example/advanced/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<img alt="hills" class="hills" src="img/hills.png"><img alt="sun" class="sun" src="img/sun.png"><img alt="balloon" class="balloon" src="img/balloon.png"><img alt="birds" class="birds" src="img/birds.png"><img alt="cloud" class="cloud" src="img/cloud.png">
1010
<div class="leaf"></div>
1111
</div>
12-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
13-
<script type="text/javascript" src="../../bower_components/prefixfree/prefixfree.min.js"></script>
12+
<script type="text/javascript" src="../../node_modules/jquery/dist/jquery.js"></script>
1413
<script type="text/javascript" src="../../jquery.keyframes.js"></script>
1514
<script src="js/animation.js"></script>
1615
<script src="js/init.js"></script>

example/advanced/js/animation.coffee

Lines changed: 0 additions & 15 deletions
This file was deleted.

example/advanced/js/animation.js

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,37 @@
1-
(function() {
2-
var pfx = $.keyframe.getVendorPrefix();
3-
var transform = pfx + 'transform';
1+
var pfx = $.keyframe.getVendorPrefix();
2+
var transform = pfx + 'transform';
43

5-
$.keyframe.define([{
6-
name: 'clouds',
7-
'from': {
8-
'margin-left': '-50%'
9-
},
10-
'to': {
11-
'margin-left': '100%'
12-
}
13-
}, {
14-
name: 'balloon',
15-
'from': {
16-
'margin-top': '200px',
17-
'margin-left': '100%',
18-
'transform': 'transform:scale(1)'
19-
},
20-
'to': {
21-
'margin-top': '100px',
22-
'margin-left': '-20%',
23-
'transform': 'transform:scale(0.3)'
24-
}
25-
}, {
26-
name: 'sun',
27-
'from': {
28-
'margin-top': '50px',
29-
'margin-left': '-20px',
30-
'transform': 'transform:rotate(360deg)'
31-
},
32-
'to': {
33-
'margin-top': '-20px',
34-
'margin-left': '100px',
35-
'transform': 'transform:rotate(0deg)'
36-
}
4+
$.keyframe.define([{
5+
name: 'clouds',
6+
'from': {
7+
'margin-left': '-50%'
8+
},
9+
'to': {
10+
'margin-left': '100%'
3711
}
38-
]);
39-
40-
}).call(this);
12+
}, {
13+
name: 'balloon',
14+
'from': {
15+
'margin-top': '200px',
16+
'margin-left': '100%',
17+
'transform': 'transform:scale(1)'
18+
},
19+
'to': {
20+
'margin-top': '100px',
21+
'margin-left': '-20%',
22+
'transform': 'transform:scale(0.3)'
23+
}
24+
}, {
25+
name: 'sun',
26+
'from': {
27+
'margin-top': '50px',
28+
'margin-left': '-20px',
29+
'transform': 'transform:rotate(360deg)'
30+
},
31+
'to': {
32+
'margin-top': '-20px',
33+
'margin-left': '100px',
34+
'transform': 'transform:rotate(0deg)'
35+
}
36+
}
37+
]);

example/advanced/js/animation.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/advanced/js/init.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
(function() {
2-
$(window).ready(function() {
3-
$('.cloud').playKeyframe('clouds 40s linear 0 infinite');
4-
$('.balloon').playKeyframe('balloon 40s ease 0 infinite');
5-
$('.sun').playKeyframe('sun 40s linear 0 infinite');
6-
});
7-
8-
}).call(this);
1+
$(window).ready(function() {
2+
$('.cloud').playKeyframe('clouds 40s linear infinite');
3+
$('.balloon').playKeyframe('balloon 40s ease infinite');
4+
$('.sun').playKeyframe('sun 40s linear infinite');
5+
});

example/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
<head>
55
<title>jQuery-Keyframes Example</title>
6-
<script type="text/javascript" src="../bower_components/jquery/dist/jquery.min.js"></script>
7-
<script type="text/javascript" src="../bower_components/prefixfree/prefixfree.min.js"></script>
6+
<script type="text/javascript" src="../node_modules/jquery/dist/jquery.js"></script>
87
<script type="text/javascript" src="../jquery.keyframes.js"></script>
98

109
<script type='text/javascript'>
11-
$(window).load(function() {
10+
$(document).ready(function() {
1211

1312
// Enable Debugging
1413
$.keyframe.debug = true;
@@ -56,7 +55,6 @@
5655
name: 'ball-move',
5756
duration: "3s",
5857
timingFunction: 'ease',
59-
delay: 0,
6058
iterationCount: 'infinite',
6159
direction: 'normal',
6260
fillMode: 'forwards',

0 commit comments

Comments
 (0)