Provides Flickity library integration for Drupal.
Provides Flickity library integration for Drupal 8., (*1)
Start using Flickity in three steps., (*2)
Download latest Flickity module form Github or via Composer and enable it as usual., (*3)
composer require outlawplz/flickity
Download latest Flickity library and copy it to the libraries/
folder found at Drupal root folder., (*4)
# CSS file location /libraries/flickity/dist/flickity.min.css # JS file location /libraries/flickity/dist/flickity.pkgd.min.js
In a Reference Entity field select Flickity as display mode., (*5)
That's it. You're all set to start using Flickity., (*6)
You can add new configurations or edit existing ones at Configuration > User interface > Flickity. Common options are listed as fields, while advanced options are stored in YAML format., (*7)
# E.g. imagesLoaded: true groupCells: 2 lazyLoad: true
To learn more about Flickity options, check out the official documentation., (*8)
Flickity uses CSS to set cell sizing. This way you can alter the number of cell visible at different display size using media queries., (*9)
# Small screens @media (max-width: 560px) { .field__item { width: 50%; } } # Wide screens @media (min-width: 561px) { .field__item { width: 25%; } }
To learn more about Flickity styling, check out the official documentation., (*10)