回答編集履歴
1
調整
test
CHANGED
@@ -23,3 +23,41 @@
|
|
23
23
|
</div>
|
24
24
|
</div>
|
25
25
|
```
|
26
|
+
|
27
|
+
# 動きつき
|
28
|
+
```html
|
29
|
+
<style>
|
30
|
+
.question-box_query:not(:hover) + .question-box_answer{
|
31
|
+
display:none;
|
32
|
+
}
|
33
|
+
.question-box_query{
|
34
|
+
z-index:1;
|
35
|
+
}
|
36
|
+
.question-box_query:hover + .question-box_answer{
|
37
|
+
animation:slidedown 1s;
|
38
|
+
animation-fill-mode:forwards;
|
39
|
+
z-index:2;
|
40
|
+
}
|
41
|
+
@keyframes slidedown{
|
42
|
+
from{opacity:0;height:0;transform:translateY(-1em);}
|
43
|
+
to {opacity:1;height:2em;transform:translateY(0);}
|
44
|
+
}
|
45
|
+
</style>
|
46
|
+
<div class="question-container">
|
47
|
+
|
48
|
+
<div class="question-box">
|
49
|
+
<p class="question-box_query">好きな色は?</p>
|
50
|
+
<p class="question-box_answer">赤色</p>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div class="question-box">
|
54
|
+
<p class="question-box_query">好きな果物は?</p>
|
55
|
+
<p class="question-box_answer">りんご</p>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="question-box">
|
59
|
+
<p class="question-box_query">出身は?</p>
|
60
|
+
<p class="question-box_answer">日本</p>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
```
|