当前位置:网站首页>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 !
边栏推荐
- What is zero trust? Three classes will show you how to understand him!
- C. K-th Not Divisible by n(数学+思维) Codeforces Round #640 (Div. 4)
- D. Solve The Maze(思维+bfs)Codeforces Round #648 (Div. 2)
- [application recommendation] the hands-on experience and model selection suggestions of apifox & apipost in the recent fire
- C. K-th not divisible by n (Mathematics + thinking) codeforces round 640 (Div. 4)
- Load MySQL table data consumption quick installation configuration through kafka/flink
- Inter thread communication of embedded development foundation
- ZOJ - 4104 sequence in the pocket
- D. Solve the maze (thinking +bfs) codeforces round 648 (Div. 2)
- 对深度可分离卷积、分组卷积、扩张卷积、转置卷积(反卷积)的理解
猜你喜欢
![[go] concurrent programming channel](/img/6a/d62678467bbc6dfb6a50ae42bacc96.jpg)
[go] concurrent programming channel
![[interview high frequency questions] sequential DP questions with difficulty of 3/5 and direct construction](/img/32/720ffa63a90cd5d37460face3fde38.png)
[interview high frequency questions] sequential DP questions with difficulty of 3/5 and direct construction
![[application recommendation] the hands-on experience and model selection suggestions of apifox & apipost in the recent fire](/img/dd/24df91a8a1cf1f1b9ac635abd6863a.png)
[application recommendation] the hands-on experience and model selection suggestions of apifox & apipost in the recent fire
![[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)](/img/21/503ed54a2fa14fbfd67f75a55ec286.png)
[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)
MySQL Advanced Series: locks - locks in InnoDB
![[download attached] installation and simple use of Chinese version of awvs](/img/3b/f26617383690c86edff465c9a1099e.png)
[download attached] installation and simple use of Chinese version of awvs

Build go command line program tool chain

C. K-th not divisible by n (Mathematics + thinking) codeforces round 640 (Div. 4)

C. Three displays(动态规划)Codeforces Round #485 (Div. 2)
Advanced programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization
随机推荐
炒期货在哪里开户最正规安全?怎么期货开户?
Global and Chinese market of computer protective film 2022-2028: Research Report on technology, participants, trends, market size and share
Find out the invisible assets -- use hosts collision to break through the boundary
Tencent blue whale container management platform was officially released!
Where is the most formal and safe account opening for speculation futures? How to open a futures account?
Enterprise service growth path (7): what key factors will affect SaaS' sales performance?
How to select an open source license
Applet wxss
April 23, 2021: there are n cities in the TSP problem, and there is a distance between any two cities
Istio FAQ: failed to resolve after enabling smart DNS
【Prometheus】2. Overview and deployment
A very good educational man and resource center planning scheme, with word file download
Some experiences of K project: global template highlights
AI structured intelligent security video monitoring technology, supporting the protective umbrella of the reserve / wild animals
2021-04-25: given an array arr and a positive number m, the
Global and Chinese market for commercial barbecue smokers 2022-2028: Research Report on technology, participants, trends, market size and share
Some experiences of project K several operations in the global template
PyTorch中的转置卷积详解
D. Solve The Maze(思维+bfs)Codeforces Round #648 (Div. 2)
What is a framework?