回答編集履歴
1
CSS追加
test
CHANGED
@@ -39,3 +39,37 @@
|
|
39
39
|
animetionのkeyframesを途中から再生したい
|
40
40
|
|
41
41
|
[https://teratail.com/questions/9518](https://teratail.com/questions/9518)
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
-- 追記。念のため、CSSも書いておきます。
|
46
|
+
|
47
|
+
```CSS
|
48
|
+
|
49
|
+
.squareBox {
|
50
|
+
|
51
|
+
position: absolute;
|
52
|
+
|
53
|
+
width: 100px;
|
54
|
+
|
55
|
+
height: 100px;
|
56
|
+
|
57
|
+
margin-top: 50px;
|
58
|
+
|
59
|
+
margin-left: 50px;
|
60
|
+
|
61
|
+
background-color: aqua;
|
62
|
+
|
63
|
+
animation: rotate 30s linear both infinite;
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
@keyframes rotate {
|
70
|
+
|
71
|
+
100% { transform: rotateZ(360deg); }
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
```
|