【发布时间】:2017-11-23 12:54:12
【问题描述】:
我的网站上有一个段落,我希望某些字词在 animate.css 中显示出来。我已成功将 animate.css 添加到我的站点,但是,当我尝试将其添加到我的 span 类时,它不起作用。我做了一些研究,似乎你必须在跨度上添加一个显示,因为如果显示不工作,animate.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>
【问题讨论】:
标签: css animate.css