当前位置:网站首页>Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
2022-07-03 14:04:00 【starcpdk】
Download the two in the figure js Files are imported into your own project 
Then introduce this in the component js
stay mounted Add this part to the hook function of
// Roll detection
var waypoint = new Waypoint({
element: document.getElementById('waypoint'), // What label does this represent
handler: function(direction) {
if (direction == "down"){
// Scrolling triggers this function
// If you slide the mouse down , Then let id by toolbar The label of shows
$('#toolbar').show(500);
}else {
// If you slide the mouse up , Then let id by toolbar Label partition of 500 Hide after milliseconds
$('#toolbar').hide(500);
}
console.log('Scrolled to waypoint!' + direction)
}
})

The effect is
Slide to the top, and the content in the following figure disappears
Slide the mouse down , The content in the figure will appear again 
边栏推荐
- jvm-运行时数据区
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- 金属有机骨架MOFs装载非甾体类抗炎药物|ZIF-8包裹普鲁士蓝负载槲皮素(制备方法)
- 解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- jvm-类加载
- Common plug-ins for vite project development
- FPGA test method takes mentor tool as an example
- Selenium browser (1)
- Solve MySQL 1045 access denied for user 'root' @ 'localhost' (using password: yes)
- Qt学习23 布局管理器(二)
猜你喜欢
[email protected])|制备路线"/>叶酸修饰的金属-有机骨架(ZIF-8)载黄芩苷|金属有机骨架复合磁性材料([email protected])|制备路线
![[机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心](/img/06/b71b505c7072d540955fda6da1dc1b.jpg)
[机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线

Redis:Redis的数据结构、key的操作命令

解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)

Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)

RichView TRVStyle ListStyle 列表样式(项目符号编号)

GoLand 2021.1: rename the go project

28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
[email protected] (FE) | glycyrrhetinic acid modified metal organ"/>Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ
随机推荐
Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明
Using registered classes to realize specific type matching function template
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
Use vscode to view hex or UTF-8 codes
Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market
[技術發展-24]:現有物聯網通信技術特點
Implementation of Muduo asynchronous logging
[combinatorics] permutation and combination (two counting principles, examples of set permutation | examples of set permutation and circle permutation)
Redis:字符串类型数据的操作命令
Golang — template
Leetcode-1175.Prime Arrangements
Vite project commissioning
Collection of mobile adaptation related articles
Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
Qt学习20 Qt 中的标准对话框(中)
Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?
SQL Injection (AJAX/JSON/jQuery)
28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;