当前位置:网站首页>Page scrolling effect library, a little skinny
Page scrolling effect library, a little skinny
2022-06-24 16:31:00 【Programmer fish skin】
A minute , Make page scrolling more interesting
I just recommended a powerful and easy-to-use cross platform to you some time ago CSS3 Animation library Animate.css, Built in a lot of commonly used CSS Animation , One line of code can make the page move .
Today I would like to recommend his cousin ,WOW.js, A little skinny page scrolling effect Library .
Enter its official website , You know this class library is very interesting , The screen is full of all kinds of dog heads .
The official website is the introduction and demonstration page of the library , When you scroll down the page , Each dog head will be displayed in various animations . In the middle of a dog's head , You can see the excellent features of this library , For example, it is easy to use 、 pure JS Realization 、 Do not rely on jQuery、 Animation is rich 、 Only 3 kb size 、 Instant presentation, etc .
WOW.js be based on Animate.css, When the page scrolls to a certain position , Trigger Animate.css The built-in animation , So as to make the page more vivid .
Here is a demonstration of its usage , You can learn in a minute !
How to use
There are many scenarios for scrolling effects , For example, you should make a birthday blessing website for your friends , You can type a long paragraph first , When a friend finishes reading this passage , When scrolling to the bottom of the page , Pop up a birthday cake , It will add a lot of surprises .
If you do the scrolling animation by yourself , You're going to write it JS Code to determine whether the page scrolling position reaches the position of the element , Then dynamically add the class name , It's OK to say one element , If you want to control multiple , It's a little bit more complicated .
If you use WOW.js, Everything is much simpler .
It's easy to use , First, introduce the Animate.css:
<link rel="stylesheet" href="css/animate.css">
To introduce WOW.js And initialize an instance , Still usable CDN:
<script src="js/wow.min.js"></script> <script> new WOW().init(); </script>
Next , Select the element that you want to trigger the animation effect when scrolling , Give it a plus wow Class name .
<div> happy birthday to you ,abaaba! Omit here 1000 word </div> <!-- Elements that want to add a scrolling effect --> <div class="wow"> </div>
Last , from Animate.css Select an effect in the animation library of , And add the corresponding class name to the selected element .
For example, I choose “ Pop up ” The dynamic effect of , The corresponding class name is bounceInUp:
<div class="wow bounceInUp"> </div>
And then it's done , Birthday cake is hidden by default , It will not pop up until the user scrolls to it .
Besides , You can also control the duration of the animation by adding a class name to the element 、 Repeat the number 、 Time delay 、 Roll offset, etc :
<div class="wow slideInLeft"
data-wow-duration="2s"
data-wow-delay="5s"
data-wow-offset="10" data-wow-iteration="10"
>
xxx
</div>You can also initialize the instance , Add global configuration to all elements :
wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
mobile: true,
live: true,
})
wow.init();That's all WOW.js I want to share with you , If you are interested, you can have a try ~
Project address :https://www.code-nav.cn/rd/?rid=28ee4e3e6008319f00473b1a245a2c70
stay Programming navigation We can also find more high-quality programming learning resources , Welcome to share it with the students in need !
边栏推荐
- An error is reported during SVN uploading -svn sqlite[s13]
- 山金期货安全么?期货开户都是哪些流程?期货手续费怎么降低?
- Bitwise Operators
- 期货怎么开户安全些?哪些期货公司靠谱些?
- MySQL date timestamp conversion
- A new weapon to break the memory wall has become a "hot search" in the industry! Persistent memory enables workers to play with massive data + high-dimensional models
- [tke] modify the cluster corendns service address
- Some experiences of project K several operations in the global template
- 2021-04-24: handwriting Code: topology sorting.
- One article explains Jackson configuration information in detail
猜你喜欢

There are potential safety hazards Land Rover recalls some hybrid vehicles

C. Three displays(动态规划)Codeforces Round #485 (Div. 2)

Applet wxss

B. Ternary Sequence(思维+贪心)Codeforces Round #665 (Div. 2)
MySQL Advanced Series: Locks - Locks in InnoDB

Cap: multiple attention mechanism, interesting fine-grained classification scheme | AAAI 2021

ZOJ - 4104 sequence in the pocket
![[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)](/img/21/503ed54a2fa14fbfd67f75a55ec286.png)
[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)

A new weapon to break the memory wall has become a "hot search" in the industry! Persistent memory enables workers to play with massive data + high-dimensional models

C. K-th Not Divisible by n(数学+思维) Codeforces Round #640 (Div. 4)
随机推荐
2021-05-01: given an ordered array arr, it represents the points located on the X axis. Given a positive number k
Bitwise Operators
How to open a futures account safely? Which futures companies are more reliable?
【Prometheus】2. Overview and deployment
ThinkPHP 漏洞利用工具
B. Ternary Sequence(思维+贪心)Codeforces Round #665 (Div. 2)
An error is reported during SVN uploading -svn sqlite[s13]
D. Solve the maze (thinking +bfs) codeforces round 648 (Div. 2)
Tencent blue whale Zhiyun community version v6.0.3 was officially released together with the container management platform!
SQL multi table updating data is very slow
Nature publishes significant progress in quantum computing: the first quantum integrated circuit implementation in history
2021-04-29: given an array arr, it represents a row of balloons with scores. One for each blow
基于STM32的MD5校验
Pytorch 转置卷积
mysql时间戳格式转换日期格式字符串
What does the router pin mean?
2021-04-18: given a two-dimensional array matrix, the value in it is either 1 or 0,
Where is the most formal and safe account opening for speculation futures? How to open a futures account?
Wechat official account debugging and natapp environment building
2021-04-28: force buckle 546, remove the box. Give some boxes of different colors