私はスクロールダウンのアニメーションボタンを作成しましたが、アニメーションは機能しません。 私は何が間違っているのか分かりません。私は-webkit-animation: sdb10 2s infinite
とanimation: sdb10 2s infinite
で試しましたが、効果がないようです。CSS3のスクロールアニメーションが機能しない
.scrolldown span {
position: absolute;
top: 0;
width: 30px;
height: 50px;
border: 2px solid #1F1F1F;
border-radius: 50px;
box-sizing: border-box;
}
.scrolldown {
position: fixed;
width: 30px;
height: 75px;
bottom: -25px;
left: 50%;
z-index: 2;
display: inline-block;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
letter-spacing: .1em;
text-decoration: none;
transition: opacity .3s;
}
.scrolldown span::before {
position: absolute;
top: 10px;
left: 50%;
content: '';
width: 6px;
height: 6px;
margin-left: -3px;
background-color: #1F1F1F;
border-radius: 100%;
-webkit-animation: sdb10 2s infinite;
animation: sdb10 2s infinite;
box-sizing: border-box;
}
.scrolldown span::after {
\t position: absolute;
\t bottom: -20px;
\t left: 50%;
\t width: 18px;
\t height: 18px;
\t content: '';
\t margin-left: -9px;
\t border-left: 2px solid #1F1F1F;
\t border-bottom: 2px solid #1F1F1F;
\t -webkit-transform: rotate(-45deg);
\t transform: rotate(-45deg);
\t -webkit-animation: sdb05 1.5s infinite;
\t animation: sdb05 1.5s infinite;
\t box-sizing: border-box;
}
<div class="scrolldown">
\t <span></span>
</div>
をあなたの 'keyframes'を含めるようにあなたの質問を更新してください'アニメーション' – Shaggy
@Shaggyキーフレームとはどういう意味ですか? – Johnny97
「アニメーションの使い方」(https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations)を参照する必要があります。 – Shaggy