当前位置:网站首页>Menu double linkage effect in uniapp
Menu double linkage effect in uniapp
2022-06-11 07:01:00 【Yu Mei】
uniapp in Menu double linkage effect , Just click the directory on the left , Scroll to the corresponding article position on the right , And the highlight flashes three times .
design sketch :
When doing this , Jump first , The first thing that came to my mind html Anchor links in , use id, But the content is circular , Can't be used directly link Write , Then I started a big wave of Baidu , At this time, it is particularly important to search for keywords , I've been searching for anchor links to jump to the corresponding list , For a long time , All of them are listening for scrolling events , If there is less content , Can , But put it here , Obviously not very good . Then I was confused , Start asking people , He told me that the mall list would use this , It woke me up at once , I began to search for key words for menu double linkage , Sure enough , The first article is ok 了
Namely Monitor the scrolling of the whole page , then clikc event , Associated with the directory and content on the left index, Here is the code I changed 




Next is the blinking effect , At first I thought about using a timer , But after clicking jump, you need to find the one that changes color dom Elements , I'm not very good at getting , It occurred to me that his subscript was used in the jump , Then this flicker can also , Judge by subscript change change , Add dynamic class name . Just write an animation . Here is the code :

边栏推荐
- 【概率论与数理统计】猴博士 笔记 p41-44 统计量相关小题、三大分布的判定、性质、总体服从正态分布的统计量小题
- Dynamically change the direction of this
- 品牌定位个性六种形态及结论的重大意义
- JVM from getting started to giving up 2: garbage collection
- 常用问题排查工具和分析神器,值得收藏
- Graph Attention Tracking
- [deploy private warehouse based on harbor] 3 deploy harbor
- First day of database
- The difference between TCP and UDP
- Shuttle container component
猜你喜欢

WPF 数据绑定(四)

【LeetCode】-- 17.电话号码的字母组合

Open source cartoon server mango

Leetcode hot topic 100 topic 21-25 solution

Transformer Tracking

client-go gin的简单整合六-list-watch二(关于Rs与Pod以及Deployment的完善)
![[deploy private warehouse based on harbor] 3 deploy harbor](/img/cd/be68a430e86b4b23ad93b42a338f00.jpg)
[deploy private warehouse based on harbor] 3 deploy harbor

Stack -- one of two common linear structures of linear structure

News web page display

Difference between byte and bit
随机推荐
Bat (batch processing) processing special symbols (exclamation point, percent sign), etc
Promise. All capture error
Dynamically change the direction of this
The realization of online Fox game server room configuration battle engagement customization function
Oracle pl/sql these query results cannot be updated. Please include ROWID or use Select For update
Cross-Modal Pattern-Propagation for RGB-T Tracking
Latex various arrows / arrows with text labels / variable length arrows
网狐游戏服务器房间配置向导服务定制功能页实现
A highly controversial issue
JVM from getting started to giving up 2: garbage collection
Summary of string processing skills II
Prototype and prototype chain
[MATLAB image fusion] particle swarm optimization adaptive multispectral image fusion [including source code phase 004]
Practice: how to reasonably design functions to solve practical problems in software development (I)
Luogu p1091 chorus formation (longest ascending subsequence)
Start the Nacos server of shell script
Zabbix 监控主机是否在线
Flutter Container组件
Redux learning (III) -- using Redux saga, writing middleware functions, and splitting reducer files
Use of qscriptengine class