PHP code example of gevman / yii2-html-lazyload
1. Go to this page and download the library: Download gevman/yii2-html-lazyload library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gevman / yii2-html-lazyload example snippets
\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)
]);