teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コードの追加

2020/03/18 01:26

投稿

vermontcurry
vermontcurry

スコア7

title CHANGED
File without changes
body CHANGED
@@ -9,4 +9,24 @@
9
9
  CSSで実現不可の場合、jsでどうにかなるのであれば
10
10
  その手法も教えていただけましたら幸いです。
11
11
 
12
+ ```
13
+ #hero img {
14
+  width: 400px;
15
+  height: 600px;
16
+  position: absolute;
17
+  bottom: 0;
18
+  left: 0;
19
+  animation-delay: 4s;
20
+  animation-name: up;
21
+  animation-duration: 5s;
22
+  animation-iteration-count: 3;
23
+  animation-timing-function: linear;
24
+ }
25
+
26
+ @keyframes up {
27
+  0% { bottom: -600px; }
28
+  100% { bottom: 100vh; }
29
+ }
30
+ ```
31
+
12
32
  ![イメージ説明](4070a2ab9a3a03256901814f4f841731.png)