Type
magento2-module
the last carousel you'll ever need for magento2
magento2-module
MIT
None
None
None
None
None
the last carousel you'll ever need for Magento2
cd <magento_root>
composer config repositories.swissup composer https://docs.swissuplabs.com/packages/
composer require swissup/slick-carousel --prefer-source
bin/magento module:enable Swissup_SlickCarousel
bin/magento setup:upgrade
Add the following or similar code to Cms Page or Block:
<div data-mage-init='{"slick": {"slidesToShow": 4, "slidesToScroll": 1, "dots": false, "autoplay": true, "swipeToSlide": true}}'>
<div style="margin-right: 10px"><img src="http://placehold.it/350x150" alt=""/></div>
<div style="margin-right: 10px"><img src="http://placehold.it/350x150" alt=""/></div>
<div style="margin-right: 10px"><img src="http://placehold.it/350x150" alt=""/></div>
<div style="margin-right: 10px"><img src="http://placehold.it/350x150" alt=""/></div>
<div style="margin-right: 10px"><img src="http://placehold.it/350x150" alt=""/></div>
<div style="margin-right: 10px"><img src="http://placehold.it/350x150" alt=""/></div>
</div>