visol/neos-responsiveimages
composer require visol/neos-responsiveimages
Neos package that helps implementing responsive images based on npm's lazyimages
dev-master
- Version
- dev-master
- Type
- neos-package
- Release Date
- Nov 11, 2024 16:29
- Requires
- neos/fusion: ~5.0 || ~7.0 || ~8.0 || ~9.0 || dev-master
Readme excerpt
Visol.Neos.ResponsiveImagesThis Neos package helps using npm's lazysizes strategy to implement responsive images. See https://www.npmjs.com/package/lazysizes
InstallationTo install the package correctly, go to your theme package (e.g. Packages/Sites/Visol.Site) and run the following command:
composer require visol/neos-responsiveimages --no-update-
Install lazysizes. E.g. with npm
npm install lazysizes --save -
Add the JavaScript sources to your main script
import 'lazysizes/plugins/parent-fit/ls.parent-fit.min'; import 'lazysizes/plugins/bgset/ls.bgset.min'; import 'lazysizes/lazysizes.min';
Just replace usages o…
Read more
The same vendor provides 6 package(s).