Skip to content

This module lets you use Slick with Magento 2 throught requirejs

Notifications You must be signed in to change notification settings

slackerzz/slickjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slickjs

This module lets you use Slick with Magento 2 throught requirejs

Installation

composer require msp/owlcarousel2
bin/magento setup:upgrade

Usage

Initialization

You can init the slider with data-mage-init:

<div class="your-class" data-mage-init='{
    "slick": {
      ...
      "autoplay"          :   true,
      ...
    }
}'>
  <div>your content</div>
  <div>your content</div>
  <div>your content</div>
</div>

or with a <script type="text/x-magento-init">:

<div id="your-id" class="your-class">
  <div>your content</div>
  <div>your content</div>
  <div>your content</div>
</div>
<script type="text/x-magento-init">
     {
         "#your-id": {
             "slick": {
                ...
                "autoplay"          :   true,
                ...
             }
         }
     }
 </script>

About

This module lets you use Slick with Magento 2 throught requirejs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 77.7%
  • JavaScript 20.5%
  • PHP 1.8%