Javascript Plugin
Goal
- โก In this step, we are going to learn how to use javascript plugin.
- ๐ฅ We'll add a plugin to the Customers Voice section to add an effect like the GIF below.
wow.js
We will add a plugin called wow.js to add effects.
Install
As described in wow.js document, the following two files are required to use this plugin.
animate.css
wow.min.js
Let's prepare these files.
Animate css
First, copy the code of animate.min.css
v3.7.1 from the following URL.
https://github.com/daneden/animate.css
Next, create a file animate.min.css
in the css
folder and paste the copied code.
caution
Note: Do not save after pasting the code. This is because if you save the code, auto format feature will be applied to the code and it will decompress the compressed code.
wow.min.js
Next, let's prepare wow.min.js
. Copy the code of wow.min.js
from the following URL's dist
folder.
https://github.com/graingert/wow
Next, create the wow.min.js
file in the js
folder and paste the copied code.
caution
Note: Do not save the code as well as the previous one. The auto format will decompress the compressed code.
Setup
Now the files are ready, let's set up as described in [wow.js document] (https://wowjs.uk/docs.html).
Animate css
wow js
How to use
Add the wow bounceInUp
classes to the target element to which you want to add an effect.
And add data-wow-duration
and data-wow-delay
to the target element.
Edit each column in the Customers Voice section as follows.
delay
time for each column
Change the Change the data-wow-delay
in each column as follows.