msp / owlcarousel2

msp/owlcarousel2

magento2-module 2.4.6-2.4.9 Compatible Based on composer requirements only QA: passed OSL-3.0

Magento 2 OwlCarousel2 module

PHP version

This module lets you use OwlCarousel2 with Magento 2 through requirejs.

Installation

composer require msp/owlcarousel2
bin/magento setup:upgrade

Usage

Initialization

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

<div id="your-slider" class="owl-carousel" data-mage-init='{
    "OwlCarousel": {
      "autoPlay"          :   true,
      "autoplayTimeout"   :   1500,
      "loop"              :   true,
      "items"             :   1,
      "dots"              :   false
    }
}'>
    <img src="kitten1.jpg" />
    <img src="kitten2.jpg" />
    <img src="kitten3.jpg" />
    <img src="kitten4.jpg" />
</div>

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

<div id="your-slider" class="owl-carousel">
    <img src="kitten1.jpg" />
    <img src="kitten2.jpg" />
    <img src="kitten3.jpg" />
    <img src="kitten4.jpg" />
</div>
<script type="text/x-magento-init">
     {
         "#your-slider": {
             "OwlCarousel": {
                "autoplay"        : true,
                "autoPlayTimeout" : 1500,
                "loop"            : true,
                "items"           : 1,
                "dots"            : false
             }
         }
     }
 </script>

OwlCarousel theme css

This module loads only the base css from OwlCarousel, but no theme.
The default theme is included, and you can add it to your theme layout default.xml (or whatever layout file) with:

...
    <head>
        ...
        <css src="Msp_OwlCarousel2::css/owl.theme.default.min.css" />
        ...
    </head>
...

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Released
0.1.6 stable Pass 2018-03-28 10:43:16
0.1.5 stable Not tested 2017-08-11 08:09:48
0.1.4 stable Not tested 2017-08-07 09:03:35
0.1.3 stable Not tested 2017-08-04 07:20:39
0.1.2 stable Not tested 2017-07-19 16:00:54
0.1.1 stable Not tested 2017-02-16 15:13:33
0.1.0 stable Not tested 2016-07-22 14:25:29

Requires 3

Package Constraint
php *
msp/common *
magento/magento-composer-installer *
QA results
Tool Status Findings Summary
PHPCS Pass 0
PHPStan Pass 0
Cpd Pass 0
Security Pass 0
License
OSL-3.0
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.