visol/neos-responsiveimages

Last activity 11 Nov 2024 5 1 5304
composer require visol/neos-responsiveimages

Neos package that helps implementing responsive images based on npm's lazyimages

1.0.0

Version
1.0.0
Type
neos-package
Release Date
Nov 21, 2019 21:13
Source
git
Distribution
zip
Requires
  • neos/fusion: ~3.3 || ~4.0 || ~5.0 || dev-master
MIT 6df12dcd752d9077451a5a84e0ea2a191be69c6e

Readme excerpt

Visol.Neos.ResponsiveImages

This Neos package helps using npm's lazysizes strategy to implement responsive images. See https://www.npmjs.com/package/lazysizes

Installation

To 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';
Quick Start

Just replace usages o…
Read more

The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 6 package(s).