我有 4 个街区:
<div class="row">
<div class="col-md-3">
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
<div class="col-md-3" >
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
<div class="col-md-3">
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
<div class="col-md-3">
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
</div>
如何在无限循环中页面加载后使用 JS 或 CSS 使这 4 个块自动水平滚动?例如,Tinkoff在这里怎么样
使用 Slick.js,很简单 官方网站, 文档
您可以为此自定义滑块。启用
autoplay
并设置autoplaySpeed
为 0。这样它就不会停止,请确保它们easing
cssEase
处于打开状态linear
像这样的东西
在 CodePen 中也是如此