gevman/yii2-html-lazyload Yii2 Lazy load Widget for html blocks

composerlazyloadyii-widgetblocklazyload

Yii2 Lazy load Widget for html blocks

Installation (using composer)

composer require gevman/yii2-lazyload
Example
<?php \Gevman\LazyLoad\LazyBlock::begin([
    'effect' => \Gevman\LazyLoad\LazyBlock::EFFECT_ZOOM_IN,
    'speed' => 600, //default = 600 (time in miliseconds)
    'delay' => 10 //default = 0 (time in miliseconds)
]); ?>

<div class="container">
    <div class="row">
        <div class="col-md-4">
            <p><?=\yii\helpers\Html::encode($page->content)?></p>
        </div>
        <div class="col-md-4">
            <p><?=\yii\helpers\Html::encode($page->content)?></p>
        </div>
        <div class="col-md-4">
            <p><?=\yii\helpers\Html::encode($page->content)?></p>
        </div>
    </div>
</div>

<?php \Gevman\LazyLoad\LazyBlock::end(); ?>
Effects
  • EFFECT_SLIDE_UP
  • EFFECT_SLIDE_DOWN
  • EFFECT_SLIDE_FROM_LEFT
  • EFFECT_SLIDE_FROM_RIGHT
  • EFFECT_ZOOM_IN
  • EFFECT_ZOOM_OUT
  • EFFECT_ROTATE
  • EFFECT_SKEW

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.2.113 October 2017
  • 1.113 October 2017
  • 1.012 October 2017

Comments



1.2.1 is the latest of 3 releases



MIT license
Stats
7 github stars & 1 github forks
0 downloads in the last day
17 downloads in the last 30 days
536 total downloads