質問編集履歴
1
参考にした質問と現在のコードを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,4 +11,43 @@
|
|
11
11
|
5.全文字フェードアウトで非表示
|
12
12
|
|
13
13
|
サンプルを試しつつ作成しましたが、いまいち再現できません。
|
14
|
-
お力添え頂ければ幸いです。
|
14
|
+
お力添え頂ければ幸いです。
|
15
|
+
|
16
|
+
---
|
17
|
+
**追記です。**
|
18
|
+
下記質問を参考に致しました。
|
19
|
+
[cssで文字を一文字ずつゆっくりと表示させたい](https://teratail.com/questions/338354)
|
20
|
+
|
21
|
+
下記、再現できずにいるコードです。
|
22
|
+
流れの5ができません。
|
23
|
+
```ここに言語を入力
|
24
|
+
■HTML
|
25
|
+
<div id="sample">
|
26
|
+
<a href="#" class="text">
|
27
|
+
<span class="c1">あ</span><span class="c2">い</span><span class="c3">う</span>
|
28
|
+
</a>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
■CSS
|
32
|
+
#sample a {
|
33
|
+
border:1px solid #CCC;
|
34
|
+
padding:15px;
|
35
|
+
}
|
36
|
+
.text .c1, .text .c2, .text .c3, .text .c4, .text .c5, .text .c6 {
|
37
|
+
animation:ease-in-out;
|
38
|
+
opacity:0;
|
39
|
+
}
|
40
|
+
#sample a:hover .c1, #sample a:hover .c2, #sample a:hover .c3, #sample a:hover .c4, #sample a:hover .c5, #sample a:hover .c6 {
|
41
|
+
opacity: 0;
|
42
|
+
animation: 2.0s ease-in-out forwards fadeIn;
|
43
|
+
}
|
44
|
+
#sample a:hover .c1 { animation-delay: 0.0s; }
|
45
|
+
#sample a:hover .c2 { animation-delay: 0.5s; }
|
46
|
+
#sample a:hover .c3 { animation-delay: 1.0s; }
|
47
|
+
@keyframes fadeIn {
|
48
|
+
to { opacity: 1;
|
49
|
+
animation: ease-in-out; }
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
```
|