Recent Gantry 4 templates made good use of animate.css and wow.js to add animations to page content. These are not yet included in Gantry 5 but they can easily be added in.
1. download animate.css from
http://daneden.github.io/animate.css/
and save it in /templates/rt_callisto/custom/wow (you may have to create custom folder and will have to create wow folder).
2. download wow.js zip from
https://github.com/matthieua/WOW
Extract this locally and the only file that you need is called wow.min.js - copy this tot the same folder as step 1 above.
3. create a text file with this content:// JavaScript Document
new WOW().init();
and save that again to the same folder and call it wowinit.js
4. goto gantry 5 themes and switch to the "base configuration" "settings" tab.
This image is hidden for guests.
Please log in or register to see it.
5. scroll right down to the bottom and you will find the custom js/css atom. Enable this and then add a css item called "animate" click on the word "animate" you just typed and the path to the file should be entered as "templates/rt_callisto/custom/wow/animate.css". Similarly add two items for Javascript one called "wow" with a file path of "templates/rt_callisto/custom/wow/wow.min.js" and one called "wowinit" with a filepath of "templates/rt_callisto/custom/wow/wowinit.js". Then save the settings.
This image is hidden for guests.
Please log in or register to see it.
NOTE: Please note that you may also load animate.css and wow.js from cdnjs.com instead if you prefer that to keeping copies on your own server.
https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.6/animate.min.css
and
https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js
6. now you need to decide which "page" you want to use wow.js on. Let's take the Callisto "Home" page as the example. Change from the "base configuration" we have been working on to "Callisto - Home" and now look at the "page settings" tab.
7. Drag the Custom CSS/JS atom onto the atoms section and save the layout
This image is hidden for guests.
Please log in or register to see it.
8. You can now use wow and the animate.css classes where you wish.
9. Let's just test that it works on the Callisto home page... So, click on the settings for the "Advanced Features" particle in the footer section.
This image is hidden for guests.
Please log in or register to see it.
10. Add CSS classes of "wow" and "bounceInUp" and click Apply. Then save the layout again.
This image is hidden for guests.
Please log in or register to see it.
11. Look at the home page of Callisto and scroll down. You should then see the "Advanced Features" animate.
That's it! Enjoy!
Regards, Mark.
The following users have thanked you: Gws, Seniha Meliha, David Goode, Kay Mattheis, JuLa, Marni J Derr, Paolo Coveri, Kat05, Henning, Max Power COM_KUNENA_THANKYOU_MORE_USERS