私のサイトには、animate.cssで特定の単語を鳴らしたいという段落があります。私は正常に自分のサイトにanimate.cssを追加しましたが、私のスパンクラスに追加しようとすると動作しません。私はいくつかの調査を行い、ディスプレイが機能していない場合animate.cssが機能しないため、スパンにディスプレイを追加する必要があるようです。ここに私のコードは次のとおりです。テキストの範囲にCSSアニメーションを追加する
.animatespan {
display: -moz-inline-stack;
display: inline-block !important;
zoom: 1;
vertical-align: top;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" rel="stylesheet"/>
<h1>
Text that is not supposed to animate
<span style="color:#4ceb90" class="animated pulse animatespan">pulsing word</span>
Text that is not supposed to animate
<span style="color:#4ceb90" class="animated pulse animatespan">pulsing word</span>
Text that is not supposed to animate
<span style="color:#4ceb90" class="animated pulse animatespan">pulsing word.</span>
</h1>
を読むことができますが、これをお読みくださいhttps://css-tricks.com/animate-to-an-inline-style/ – Sylwek