に動作していない私のイメージアニメーションが正常に動作しますので、私はこのコードで間違っつもりだところ、私が理解するのに役立ちますが、テキストアニメーションは全く機能しないでください。私のCSSアニメーションのコードが
JsFiddle:https://jsfiddle.net/bwp1n56v/5/
HTML:
@-webkit-keyframes hue {
from {
-webkit-filter: hue-rotate(0deg);
}
to {
-webkit-filter: hue-rotate(-360deg);
}
}
@keyframes round {
100% {
border-radius: 0px;
width: 256px;
height: 256px;
opacity: 100%;
}
0% {
border-radius: 25px;
width: 0px;
height: 0px;
opacity: 0%;
}
}
img {
animation: round 3s ease-in-out;
}
#anim {
-webkit-animation: hue 60s infinite linear;
}
<h1>As you see this animation works fine:</h1>
<img src="https://i.stack.imgur.com/LwSTv.png?s=328&g=1 alt=" AV ">
<hr>
<h1 class="anim ">But this text must be animated with hue animation!</h1>
ありがとうございました!あなたの答えの前にはいつも#クラスとクラスだと思っていた。 idです。 :Dしかし、実際には#はidです。クラスです。 – sudo
待ち...私は** class = "anim" **を** id = "anim" **に置き換えましたが、まだ動作しません:(https://jsfiddle.net/bwp1n56v/6/ – sudo
実際に動作していますしかし、あなたのh1の黒色は色相の影響を受けません... – yeouuu