无法使用自举动画在滑动窗口中处理div

问题描述 投票:0回答:1

当滑块进入时,我试图让滑块的文本淡入(我的元素或构建器具有轮播类型滑块)。

为此,我将这些添加到head部分的页面标题中

 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

接下来,我在我的文本div中添加了类,以显示我希望它如何消失

<div class="myDiv animated fadeInLeft" style="margin-bottom: 0; margin-top: 0;color: #FFF;font-size: 22px;line-height: 27.5px;">Hello World!</div>

尽管有动画和fadeInLeft类,但没有任何反应。每次滑块滑入时,文本都是静态的。有任何想法吗?

javascript html css bootstrap-4 bootstrap-modal
1个回答
1
投票

我认为你没有使用好的图书馆。

你可以在animate.css:fadeInLeft找到here

我不认为Bootstrap会为您提供此功能

© www.soinside.com 2019 - 2024. All rights reserved.