关闭尾风旋转旋转的自动滑动

发布于 2025-02-11 15:00:24 字数 352 浏览 2 评论 0原文

如何从自动滑动的尾风元素中关闭旋转木马?这似乎是默认设置,但是我找不到有关如何将其关闭的任何文档。 我已经在“尾风元素”页面上使用了此示例: https:// .com/doc/standard/components/carousel/

我已经使用了data-interval =“ false”属性,但是它似乎是第一次停止自动滑动,但是在手动滑动之后,通过与Slider按钮交互,它再次开始自动滑道。

How do I turn off a carousel in tailwind elements from auto-sliding? It seems to be the default setting, but I can't find any documentation on how to turn it off.
I've used this example on the tailwind elements page: https://tailwind-elements.com/docs/standard/components/carousel/

I've used the data-interval="false" attribute, but it appears to stop autosliding the first time, but after manually sliding by interacting with the slider buttons, it starts autosliding again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夕嗳→ 2025-02-18 15:00:24

我与旋转木马遇到了同样的问题,我注意到基于此问题,您需要将data-bs-interval =“ false”而不是bootstrap 5.x使用tailwind元素使用。我已经尝试过,它似乎可以阻止旋转木马自动滑动。

I was having the same issue with the carousel, and I noticed that based on this question, you need to use data-bs-interval="false" instead for Bootstrap 5.x which Tailwind Elements uses. I've tried this out and it seems to stop the carousel from sliding automatically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文