function hook_lazy_default_styles_alter in Lazy-load 8.3
Override the default styles.
If needed the default styles can be altered via this hook.
Parameters
string $css: The default CSS styles.
File
- ./
lazy.api.php, line 55 - Lazy-load API.
Code
function hook_lazy_default_styles_alter(&$css) {
$css = <<<CSS
.js img.lazyload:not([src]) { visibility: hidden; }
.js img.lazyloaded[data-sizes=auto] { display: block; width: 100%; }
CSS;
}