Commit 452e3a0983d133416dfe198979692c7676823a21
1 parent
d202e97e
slider view
Showing
2 changed files
with
20 additions
and
1 deletions
Show diff stats
frontend/views/site/_slider_product.php
frontend/web/js/front.js
| @@ -201,6 +201,25 @@ function sliders() { | @@ -201,6 +201,25 @@ function sliders() { | ||
| 201 | } | 201 | } |
| 202 | } | 202 | } |
| 203 | ); | 203 | ); |
| 204 | + | ||
| 205 | + $('.products') | ||
| 206 | + .owlCarousel( | ||
| 207 | + { | ||
| 208 | + items: 4, | ||
| 209 | + itemsDesktopSmall: [ | ||
| 210 | + 990, | ||
| 211 | + 3 | ||
| 212 | + ], | ||
| 213 | + itemsTablet: [ | ||
| 214 | + 768, | ||
| 215 | + 3 | ||
| 216 | + ], | ||
| 217 | + itemsMobile: [ | ||
| 218 | + 480, | ||
| 219 | + 2 | ||
| 220 | + ] | ||
| 221 | + } | ||
| 222 | + ); | ||
| 204 | } | 223 | } |
| 205 | 224 | ||
| 206 | } | 225 | } |