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

質問編集履歴

2

css追記

2017/06/21 00:57

投稿

helloman
helloman

スコア39

title CHANGED
File without changes
body CHANGED
@@ -16,9 +16,13 @@
16
16
  ```css
17
17
  .over {
18
18
  animation-name: over;
19
+ animation-duration: 1s;
20
+ animation-fill-mode: both;
19
21
  }
20
22
  .out {
21
23
  animation-name: out;
24
+ animation-duration: 1s;
25
+ animation-fill-mode: both;
22
26
  }
23
27
  @keyframes over {
24
28
  from {

1

cssを追加

2017/06/21 00:57

投稿

helloman
helloman

スコア39

title CHANGED
File without changes
body CHANGED
@@ -12,6 +12,33 @@
12
12
  }
13
13
  });
14
14
  ```
15
+
16
+ ```css
17
+ .over {
18
+ animation-name: over;
19
+ }
20
+ .out {
21
+ animation-name: out;
22
+ }
23
+ @keyframes over {
24
+ from {
25
+ opacity: 1;
26
+ }
27
+ to {
28
+ opacity: .1;
29
+ }
30
+ }
31
+ @keyframes out {
32
+ from {
33
+ opacity: .1;
34
+ }
35
+ to {
36
+ opacity: 1;
37
+ }
38
+ }
39
+ ```
40
+
41
+
15
42
  単純に
16
43
  ```javascript
17
44
  $(".hoge").on({