質問編集履歴
2
コード文追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,3 +23,127 @@
|
|
23
23
|
赤色のような動きで文字をなめらかに少しづつ表示できたらと思っています。
|
24
24
|
|
25
25
|
お分かりになられる方お見えになられましたらお助けください、宜しくお願い致します。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
```html
|
30
|
+
|
31
|
+
<div id="top_news" class="top_fade mincho2">
|
32
|
+
|
33
|
+
<ul>
|
34
|
+
|
35
|
+
<span class="top_postlist_date"><i class="fab fa-twitter"></i></span>
|
36
|
+
|
37
|
+
<li class="su-post"><span class="marquee su-post2"><a href="#"><span class="top_postlist_date">03/05</span>記事タイトル3</a></span></li>
|
38
|
+
|
39
|
+
<span class="top_postlist_date"><i class="fab fa-twitter"></i></span>
|
40
|
+
|
41
|
+
<li class="su-post"><span class="marquee su-post2"><a href="#"><span class="top_postlist_date">03/04</span>記事タイトル2</a></span></li>
|
42
|
+
|
43
|
+
<span class="top_postlist_date"><i class="fab fa-twitter"></i></span>
|
44
|
+
|
45
|
+
<li class="su-post"><span class="marquee su-post2"><a href="#"><span class="top_postlist_date">02/28</span>記事タイトル1</a></span></li>
|
46
|
+
|
47
|
+
</ul>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
```css
|
56
|
+
|
57
|
+
a{text-decoration: none;}
|
58
|
+
|
59
|
+
li{list-style:none;}
|
60
|
+
|
61
|
+
#top_news{
|
62
|
+
|
63
|
+
margin-left:150px;
|
64
|
+
|
65
|
+
text-align: left;
|
66
|
+
|
67
|
+
position: absolute;
|
68
|
+
|
69
|
+
bottom: 150px;
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
#top_news a{
|
74
|
+
|
75
|
+
color:#000;
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
#top_news ul li{
|
80
|
+
|
81
|
+
font-size: 0.8em;
|
82
|
+
|
83
|
+
margin-bottom: 0.2em;
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
@keyframes marquee {
|
90
|
+
|
91
|
+
from {
|
92
|
+
|
93
|
+
transform: translateX(-100%);
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
to {
|
98
|
+
|
99
|
+
transform: translateX(100%);
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
.marquee {
|
106
|
+
|
107
|
+
display: inline-block;
|
108
|
+
|
109
|
+
position: relative;
|
110
|
+
|
111
|
+
overflow: hidden;
|
112
|
+
|
113
|
+
/* line-height: 0.8em; */
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
.marquee::after {
|
120
|
+
|
121
|
+
content: "";
|
122
|
+
|
123
|
+
display: block;
|
124
|
+
|
125
|
+
width: 100%;
|
126
|
+
|
127
|
+
height: 85%;
|
128
|
+
|
129
|
+
position: absolute;
|
130
|
+
|
131
|
+
top: 0;
|
132
|
+
|
133
|
+
left: 0;
|
134
|
+
|
135
|
+
z-index: 1;
|
136
|
+
|
137
|
+
background:rgba(255, 0, 0, 0.7);
|
138
|
+
|
139
|
+
animation-name: marquee;
|
140
|
+
|
141
|
+
animation-timing-function:ease;
|
142
|
+
|
143
|
+
animation-duration: 2s;
|
144
|
+
|
145
|
+
animation-fill-mode: forwards;
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
```
|
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
作成した動きを見て頂ければわかるかと思いますが、日付・タイトルの上を赤い.marqueeが通っています。
|
12
12
|
|
13
|
-
この赤く動く.marqueeのように日付・タイトルを、右
|
13
|
+
この赤く動く.marqueeのように日付・タイトルを、左→右へ表示させたいですが
|
14
14
|
|
15
15
|
どのように指定すればいいのかわからず途方に暮れております。
|
16
16
|
|