Google Recommends to Use Animations on Landing Pages to Increase the Engagement. With WOW Library You Can Build CSS Animation on Scrolling Down. Lately, Google has released lot of Icons, Icon-Fonts and Page Speed Friendly HTML5 Templates. WOW is not of Google, but is fully free. WOW has two parts – CSS and JS. Injecting them conditionally and using proper div class can give you excellent Landing Pages for Your WordPress Website.
CSS Animation on Scrolling Down With WOW : Where is The Stuff?
There are lot of ways to get CSS animation on scrolling down, which includes the usage of SVG/XML files. These, however are not that easy for a starter to use. WOW is a ready to use library :
1 | https://github.com/matthieua/WOW |
It is easy to set up. Use Some WordPress Plugin or WordPress Conditional Element to echo the CSS script :
---
1 | <link rel="stylesheet" href="//thecustomizewindows.com/wp-content/themes/my-theme/custom-css/css/animate.css"> |
You can obviously inline the CSS like we did for CSS Drop-caps. Then the javascript can be injected with more optimized way :
1 2 3 4 | <script src="//thecustomizewindows.com/wp-content/themes/my-theme/custom-js/js/wow.min.js" async defer>execOnReady(function(){execOnReady(function(){});});</script> <script> new WOW().init(); </script> |
async defer
will be supported by over 90% browsers. In other words, there is no impact on Google Page Speed Insights score. execOnReady(function(){execOnReady(function(){});});
will instruct to only get the js executed upon being everything is being downloaded – no blank fire.
CSS Animation on Scrolling Down With WOW : Now?
You can use div class or section name to mark the stuffs :
1 2 3 4 | // basic example <div class="wow bounceInUp"> Content to Reveal Here </div > // you can modify an existing div, imagine this was wp-admin div <div class="wp-admin wow bounceInUp"> Content to Reveal Here </div > |
Rest is written in their official documentation. We only gave you the ideas which they actually have not said.
CSS Animation on Scrolling Down With WOW : Google?
Google has lot of Free stuffs for web decoration now. Like you can check this set :
1 | https://github.com/google/material-design-icons |
It is quite nice – all are actually fully free but quality is the best.
Tagged With wow css