Month ago me and Theme Monster built Ripple LazyLoad wordpress plugin this plugin contain 23 lazy load effect for wordpress website. Ripple LazyLoad is helpful to those who want to stay with their current theme and want lazy load effect in the current theme.
So Ripple Lazyload have 20+ Effects and you can apply these effect in any content type like post , text,widget links audio and video player . here is the list of effects Ripple Lazyload use
- Zoom In
- Slide Up
- Slide Left
- Quick Backwash
- Pop Up
- Move Up
- Half Rotate
- Full Rotate
- Follow Right
- Dance Updown
- Dance Left Right
- Corollary Left
- Catch Me Left
- Backwash
- Up Shot
- Jump
- Waves
- Super Macy
- Ripple
- Reflex
- Out Growth
- After Effect
- After Math
It has only one setting panel from there you can select you effect shortcode , after selection of shortcode you can add it in pages ,post ,custom post and widget.
Shorcode Argument :
- Effect :- Here popup is the effect name. You can change it manually.
- Delay :- timing of effect. this can also be changed manuallyAnd if you want to use this plugin in your template files do_shortcode method will not work because Ripple LazyLoad use enclosing shortcodesto use in your template file use
123<?php if(function_exists(execute_myshortcode)) {execute_myshortcode($content,”effect_name”,”delay”);} ?>
execute_myshortcode uses three parameter
- Content ( html )
- Effect
- Delay time
and if your content is coming by a large php codes then use can use php Output Buffer
123456789101112131415<?php ob_start() ;?>Your php codes<?php$content = ob_get_clean();if(function_exists(execute_myshortcode)) {execute_myshortcode($content,”popup”,”0.9”);}else {echo $content ;}?>here is the some samples to use it
Here is its Live preview
This Plugin has some amazing lazy loading effect you should try that if your theme doesn’t have this feature. TinyMce Button for the shortcode is coming soon