当前位置:网站首页>How does the Mui tab realize circular rotation
How does the Mui tab realize circular rotation
2022-04-21 19:55:00 【Front cut zz】
I've been in touch with mui The front frame , The requirement to do is to make a tab that can rotate , As a result, viewing the official documents is actually only a few strokes for the rotation component , Didn't even say how to rotate .

I have no choice but to think about it myself , Finally, by mistake, it is about to realize the rotation :
Briefly html Code :
<div class="mui-slider client-slider">
<div class="tab-title-box">
<div id="sliderSegmentedControl1" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
<a class="mui-control-item mui-active" href="#item1"><span> tab 1</span></a>
<a class="mui-control-item" href="#item2"><span> tab 2</span></a>
<a class="mui-control-item" href="#item3"><span> tab 3</span></a>
<a class="mui-control-item" href="#item4"><span> tab 4</span></a>
</div>
</div>
<div id="sliderProgressBar" class="mui-slider-progress-bar" style="width: 20%;"></div>
<div class="mui-slider-group">
<div id="item1" class="mui-slider-item mui-control-content mui-active">
tab 1 Content
</div>
<div id="item2" class="mui-slider-item mui-control-content">
tab 2 Content
</div>
<div id="item3" class="mui-slider-item mui-control-content">
tab 3 Content
</div>
<div id="item4" class="mui-slider-item mui-control-content">
tab 4 Content
</div>
</div>
</div>
js Code :
// Shuffling figure
var gallery = mui('.mui-slider');
gallery.slider({
interval: 6000, // Automatic carousel cycle , if 0 It doesn't play automatically , The default is 0;
scrollY: true,
scrollX: false,
indicators: true
});
document.getElementsByClassName('client-slider')[0].addEventListener('slide', function(event) {
var length = $('.client-slider .mui-control-item').length - 1
if (event.detail.slideNumber === length){
setTimeout(function(){
mui(".client-slider").slider().gotoItem(0);// Return to the first picture
},6001) // It's strange , Interval time 6000 no way ,4000~5000 Some values are also stuck directly .
}
event.stopPropagation();
});
This component needs to continue to study the source code . Simply looking at the documents can't do anything at all .
版权声明
本文为[Front cut zz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211941056485.html
边栏推荐
- 创建索引的注意事项
- 【verbs】使用ibverbs api注意事项|libibverbs 中 fork() 支持的状态如何?
- Unity Socket
- SVPWM模块为什么会出现扇区判断错误?
- Wild road play QT, episode 31, glass cleaning game
- Ali IOT
- MYSQL输入密码后闪退的解决方法
- [verbs] precautions for using ibverbs API | what is the status of fork() support in libibverbs?
- Introduction to OpenCL of opencv
- B/S端界面控件DevExtreme ASP.NET MVC入门指南 - 模板语法(一)
猜你喜欢

高性能分布式缓存Redis--- Redis底层结构和缓存原理 --- 持续更新

WLAN Qpower 介绍

Your independent station conversion rate is low? Three tips to help improve conversion

Create thread pool manually

juc-Queue接口以及其实现类
![[2021] number of effective sequences programmed by Tencent autumn recruitment technology post](/img/c2/1246796e2e1e228426788230d0e8ec.png)
[2021] number of effective sequences programmed by Tencent autumn recruitment technology post

MySQL 2003 can't connect to MySQL server on 'localhost' (10038)

一键安装ROS和rosdep(NO 墙)

手动创建线程池

nodejs笔记1
随机推荐
vim 从嫌弃到依赖(6)——插入模式
表面点云法线
LeetCode 山羊拉丁文[模拟 字符串] HERODING的LeetCode之路
MySQL修改root用户密码
[netty] is it difficult to implement a redis client by yourself?
SAP MTS/MTO/ETO专题之七:Q+M模式前后台操作
[2021] number of effective sequences programmed by Tencent autumn recruitment technology post
MySQL error 2005
[ctf.show.reverse] 1024杯 抽象语言
Interesting souls are the same. It takes only 2 steps to slide the computer off
824. Goat Latin
docker中安装MySQL、MSSQL、Oracle、MongDB、Redis集合
In 2023, Nankai University took the postgraduate entrance examination for the master of Taxation and went ashore. Experience and guidance of predecessors in preparing for the examination
Interface component telerik UI for WPF Getting Started Guide - color theme generator
B / s interface control devextreme ASP Net MVC Getting Started Guide - template syntax (I)
URL下载网络资源
PostgreSQL connection access control
Building / building projects on the command line using cmake
flinkx部署
Solution to flash back after MySQL enters password