File tree Expand file tree Collapse file tree 4 files changed +1
-69
lines changed Expand file tree Collapse file tree 4 files changed +1
-69
lines changed Original file line number Diff line number Diff line change @@ -10,45 +10,4 @@ button {
10
10
font-size : 24px ;
11
11
padding : 10px ;
12
12
margin : 5px ;
13
- }
14
-
15
- .spin {
16
- animation : spin-frames 1s infinite linear;
17
- -webkit-animation : spin-frames 1s infinite linear;
18
- }
19
-
20
- @keyframes spin-frames {
21
- 0% {
22
- transform : rotate (0deg );
23
- }
24
- 25% {
25
- transform : rotate (90deg );
26
- }
27
- 50% {
28
- transform : rotate (180deg );
29
- }
30
- 75% {
31
- transform : rotate (270deg );
32
- }
33
- 100% {
34
- transform : rotate (360deg );
35
- }
36
- }
37
-
38
- @-webkit-keyframes spin-frames {
39
- 0% {
40
- -webkit-transform : rotate (0deg );
41
- }
42
- 25% {
43
- -webkit-transform : rotate (90deg );
44
- }
45
- 50% {
46
- -webkit-transform : rotate (180deg );
47
- }
48
- 75% {
49
- -webkit-transform : rotate (270deg );
50
- }
51
- 100% {
52
- -webkit-transform : rotate (360deg );
53
- }
54
13
}
Original file line number Diff line number Diff line change 6
6
</ head >
7
7
< body >
8
8
< h1 > Client-side database comparison</ h1 >
9
-
10
-
11
- < div style ="display:inline-block ">
12
- < img src ="kirby.gif "/>
13
- < h4 > Animated GIF</ h4 >
14
- </ div >
15
- < div style ="display:inline-block ">
16
- < img class ="spin-js " src ="kirby.png "/>
17
- < h4 > JS animation</ h4 >
18
- </ div >
19
- < div style ="display:inline-block ">
20
- < img class ="spin " src ="kirby.png "/>
21
- < h4 > CSS animation</ h4 >
22
- </ div >
23
-
9
+ < img src ="kirby.gif "/>
24
10
< pre id ="display "> </ pre >
25
11
26
12
< div >
@@ -81,18 +67,5 @@ <h4>Number of objects</h4>
81
67
< script src ="node_modules/localforage/dist/localforage.min.js "> </ script >
82
68
< script src ="node_modules/lokijs/build/lokijs.min.js "> </ script >
83
69
< script src ="index.js "> </ script >
84
- < script >
85
- var kirbyPng = document . getElementsByClassName ( 'spin-js' ) [ 0 ] ;
86
-
87
- var rotate = 0 ;
88
- setInterval ( function ( ) {
89
- rotate -= 5 ;
90
- if ( rotate === 360 ) {
91
- rotate = 0 ;
92
- }
93
- kirbyPng . style . transform = 'rotate(' + rotate + 'deg)' ;
94
- kirbyPng . style . webkitTransform = 'rotate(' + rotate + 'deg)' ;
95
- } , 14 ) ;
96
- </ script >
97
70
</ body >
98
71
</ html >
You can’t perform that action at this time.
0 commit comments