function hook_lazy_effect_styles_alter in Lazy-load 8.3
Override the default effect styles.
If needed the default styles can be altered via this hook.
The "Enable default CSS effect" option must be checked in module settings.
Parameters
string $css: The default CSS effect styles.
File
- ./
lazy.api.php, line 72 - Lazy-load API.
Code
function hook_lazy_effect_styles_alter(&$css) {
$css = <<<CSS
.js .lazyload,
.js .lazyloading { opacity: 0; }
.js .lazyloaded { opacity: 1; -webkit-transition: opacity 2000ms; transition: opacity 2000ms; }
CSS;
}