Skip to content

Commit 6480feb

Browse files
committed
remove all pics but gif
1 parent c588cc8 commit 6480feb

File tree

4 files changed

+1
-69
lines changed

4 files changed

+1
-69
lines changed

index.css

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,4 @@ button {
1010
font-size: 24px;
1111
padding: 10px;
1212
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-
}
5413
}

index.html

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,7 @@
66
</head>
77
<body>
88
<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"/>
2410
<pre id="display"></pre>
2511

2612
<div>
@@ -81,18 +67,5 @@ <h4>Number of objects</h4>
8167
<script src="node_modules/localforage/dist/localforage.min.js"></script>
8268
<script src="node_modules/lokijs/build/lokijs.min.js"></script>
8369
<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>
9770
</body>
9871
</html>

kirby.gif

-1.87 KB
Loading

kirby.png

-2.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)