slick.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. //========================================
  2. // HOME INDEX BANNER SLIDER
  3. //========================================
  4. $('.home-index-slider').slick({
  5. dots: false,
  6. fade: true,
  7. infinite: true,
  8. autoplay: true,
  9. arrows: true,
  10. speed: 600,
  11. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  12. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  13. slidesToShow: 1,
  14. slidesToScroll: 1,
  15. responsive: [
  16. {
  17. breakpoint: 1200,
  18. settings: {
  19. slidesToShow: 1,
  20. slidesToScroll: 1,
  21. }
  22. },
  23. {
  24. breakpoint: 992,
  25. settings: {
  26. slidesToShow: 1,
  27. slidesToScroll: 1,
  28. }
  29. },
  30. {
  31. breakpoint: 768,
  32. settings: {
  33. slidesToShow: 1,
  34. slidesToScroll: 1,
  35. }
  36. },
  37. {
  38. breakpoint: 576,
  39. settings: {
  40. slidesToShow: 1,
  41. slidesToScroll: 1,
  42. arrows: false,
  43. }
  44. }
  45. ]
  46. });
  47. //========================================
  48. // HOME GRID BANNER SLIDER
  49. //========================================
  50. $('.home-grid-slider').slick({
  51. dots: true,
  52. fade: false,
  53. infinite: true,
  54. autoplay: true,
  55. arrows: true,
  56. speed: 600,
  57. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  58. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  59. slidesToShow: 1,
  60. slidesToScroll: 1,
  61. responsive: [
  62. {
  63. breakpoint: 1200,
  64. settings: {
  65. slidesToShow: 1,
  66. slidesToScroll: 1,
  67. }
  68. },
  69. {
  70. breakpoint: 992,
  71. settings: {
  72. slidesToShow: 1,
  73. slidesToScroll: 1,
  74. }
  75. },
  76. {
  77. breakpoint: 768,
  78. settings: {
  79. slidesToShow: 1,
  80. slidesToScroll: 1,
  81. }
  82. },
  83. {
  84. breakpoint: 576,
  85. settings: {
  86. slidesToShow: 1,
  87. slidesToScroll: 1,
  88. arrows: false,
  89. }
  90. }
  91. ]
  92. });
  93. //========================================
  94. // HOME CATEGORY BANNER SLIDER
  95. //========================================
  96. $('.home-category-slider').slick({
  97. dots: true,
  98. fade: true,
  99. infinite: true,
  100. autoplay: true,
  101. arrows: true,
  102. speed: 500,
  103. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  104. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  105. slidesToShow: 1,
  106. slidesToScroll: 1,
  107. responsive: [
  108. {
  109. breakpoint: 1200,
  110. settings: {
  111. slidesToShow: 1,
  112. slidesToScroll: 1,
  113. }
  114. },
  115. {
  116. breakpoint: 992,
  117. settings: {
  118. slidesToShow: 1,
  119. slidesToScroll: 1,
  120. }
  121. },
  122. {
  123. breakpoint: 768,
  124. settings: {
  125. slidesToShow: 1,
  126. slidesToScroll: 1,
  127. }
  128. },
  129. {
  130. breakpoint: 576,
  131. settings: {
  132. slidesToShow: 1,
  133. slidesToScroll: 1,
  134. arrows: false,
  135. }
  136. }
  137. ]
  138. });
  139. //========================================
  140. // HOME CLASSIC BANNER SLIDER
  141. //========================================
  142. $('.home-classic-slider').slick({
  143. dots: false,
  144. fade: false,
  145. infinite: true,
  146. autoplay: true,
  147. arrows: true,
  148. speed: 800,
  149. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  150. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  151. slidesToShow: 1,
  152. slidesToScroll: 1,
  153. responsive: [
  154. {
  155. breakpoint: 1200,
  156. settings: {
  157. slidesToShow: 1,
  158. slidesToScroll: 1,
  159. }
  160. },
  161. {
  162. breakpoint: 992,
  163. settings: {
  164. slidesToShow: 1,
  165. slidesToScroll: 1,
  166. }
  167. },
  168. {
  169. breakpoint: 768,
  170. settings: {
  171. slidesToShow: 1,
  172. slidesToScroll: 1,
  173. }
  174. },
  175. {
  176. breakpoint: 576,
  177. settings: {
  178. slidesToShow: 1,
  179. slidesToScroll: 1,
  180. arrows: false,
  181. }
  182. }
  183. ]
  184. });
  185. //========================================
  186. // FOR SUGGEST CATEGORY SLIDER
  187. //========================================
  188. $('.suggest-slider').slick({
  189. dots: false,
  190. infinite: true,
  191. autoplay: true,
  192. arrows: true,
  193. speed: 1000,
  194. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  195. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  196. slidesToShow: 5,
  197. slidesToScroll: 2,
  198. responsive: [
  199. {
  200. breakpoint: 1200,
  201. settings: {
  202. slidesToShow: 4,
  203. slidesToScroll: 4,
  204. }
  205. },
  206. {
  207. breakpoint: 992,
  208. settings: {
  209. slidesToShow: 3,
  210. slidesToScroll: 3,
  211. }
  212. },
  213. {
  214. breakpoint: 768,
  215. settings: {
  216. slidesToShow: 2,
  217. slidesToScroll: 2,
  218. }
  219. },
  220. {
  221. breakpoint: 576,
  222. settings: {
  223. slidesToShow: 2,
  224. slidesToScroll: 2,
  225. arrows: false,
  226. }
  227. }
  228. ]
  229. });
  230. //========================================
  231. // FOR NEW PRODUCT SLIDER
  232. //========================================
  233. $('.new-slider').slick({
  234. dots: false,
  235. infinite: true,
  236. autoplay: true,
  237. arrows: true,
  238. speed: 800,
  239. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  240. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  241. slidesToShow: 5,
  242. slidesToScroll: 1,
  243. responsive: [
  244. {
  245. breakpoint: 1200,
  246. settings: {
  247. slidesToShow: 4,
  248. slidesToScroll: 2,
  249. }
  250. },
  251. {
  252. breakpoint: 992,
  253. settings: {
  254. slidesToShow: 3,
  255. slidesToScroll: 3,
  256. }
  257. },
  258. {
  259. breakpoint: 768,
  260. settings: {
  261. slidesToShow: 2,
  262. slidesToScroll: 2,
  263. }
  264. },
  265. {
  266. breakpoint: 576,
  267. settings: {
  268. slidesToShow: 1,
  269. slidesToScroll: 1,
  270. variableWidth: true,
  271. arrows: false,
  272. }
  273. }
  274. ]
  275. });
  276. //========================================
  277. // FOR CATEGORY SLIDER
  278. //========================================
  279. $('.category-slider').slick({
  280. dots: false,
  281. infinite: true,
  282. autoplay: true,
  283. arrows: true,
  284. speed: 800,
  285. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  286. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  287. slidesToShow: 5,
  288. slidesToScroll: 1,
  289. responsive: [
  290. {
  291. breakpoint: 1200,
  292. settings: {
  293. slidesToShow: 5,
  294. slidesToScroll: 5,
  295. }
  296. },
  297. {
  298. breakpoint: 992,
  299. settings: {
  300. slidesToShow: 4,
  301. slidesToScroll: 4,
  302. }
  303. },
  304. {
  305. breakpoint: 768,
  306. settings: {
  307. slidesToShow: 3,
  308. slidesToScroll: 3,
  309. }
  310. },
  311. {
  312. breakpoint: 576,
  313. settings: {
  314. slidesToShow: 2,
  315. slidesToScroll: 2,
  316. variableWidth: true,
  317. arrows: false,
  318. }
  319. }
  320. ]
  321. });
  322. //========================================
  323. // BRAND SLIDER
  324. //========================================
  325. $('.brand-slider').slick({
  326. dots: false,
  327. infinite: true,
  328. autoplay: false,
  329. arrows: true,
  330. speed: 800,
  331. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  332. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  333. slidesToShow: 5,
  334. slidesToScroll: 1,
  335. responsive: [
  336. {
  337. breakpoint: 1200,
  338. settings: {
  339. slidesToShow: 4,
  340. slidesToScroll: 4,
  341. }
  342. },
  343. {
  344. breakpoint: 992,
  345. settings: {
  346. slidesToShow: 3,
  347. slidesToScroll: 3,
  348. }
  349. },
  350. {
  351. breakpoint: 768,
  352. settings: {
  353. slidesToShow: 2,
  354. slidesToScroll: 2,
  355. }
  356. },
  357. {
  358. breakpoint: 576,
  359. settings: {
  360. slidesToShow: 2,
  361. slidesToScroll: 1,
  362. variableWidth: true,
  363. arrows: false,
  364. }
  365. }
  366. ]
  367. });
  368. //========================================
  369. // BLOG CARD SLIDER
  370. //========================================
  371. $('.blog-slider').slick({
  372. dots: false,
  373. infinite: true,
  374. autoplay: false,
  375. arrows: true,
  376. speed: 800,
  377. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  378. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  379. slidesToShow: 3,
  380. slidesToScroll: 1,
  381. responsive: [
  382. {
  383. breakpoint: 1200,
  384. settings: {
  385. slidesToShow: 3,
  386. slidesToScroll: 3,
  387. }
  388. },
  389. {
  390. breakpoint: 992,
  391. settings: {
  392. slidesToShow: 2,
  393. slidesToScroll: 2,
  394. }
  395. },
  396. {
  397. breakpoint: 768,
  398. settings: {
  399. slidesToShow: 1,
  400. slidesToScroll: 1,
  401. }
  402. },
  403. {
  404. breakpoint: 576,
  405. settings: {
  406. slidesToShow: 1,
  407. slidesToScroll: 1,
  408. arrows: false,
  409. }
  410. }
  411. ]
  412. });
  413. //========================================
  414. // TESTIMONIAL SLIDER
  415. //========================================
  416. $('.testimonial-slider').slick({
  417. dots: false,
  418. infinite: true,
  419. autoplay: false,
  420. arrows: true,
  421. fade: false,
  422. speed: 1000,
  423. centerMode: true,
  424. centerPadding: '250px',
  425. slidesToShow: 1,
  426. slidesToScroll: 1,
  427. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  428. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  429. responsive: [
  430. {
  431. breakpoint: 1200,
  432. settings: {
  433. slidesToShow: 1,
  434. slidesToScroll: 1,
  435. centerPadding: '250px',
  436. }
  437. },
  438. {
  439. breakpoint: 992,
  440. settings: {
  441. slidesToShow: 1,
  442. slidesToScroll: 1,
  443. centerPadding: '130px',
  444. }
  445. },
  446. {
  447. breakpoint: 768,
  448. settings: {
  449. slidesToShow: 1,
  450. slidesToScroll: 1,
  451. centerPadding: '40px',
  452. }
  453. },
  454. {
  455. breakpoint: 576,
  456. settings: {
  457. arrows: false,
  458. slidesToShow: 1,
  459. slidesToScroll: 1,
  460. centerPadding: '10px',
  461. }
  462. }
  463. ]
  464. });
  465. $('.testi-slider').slick({
  466. dots: false,
  467. infinite: true,
  468. autoplay: false,
  469. arrows: true,
  470. speed: 800,
  471. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  472. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  473. slidesToShow: 1,
  474. slidesToScroll: 1,
  475. responsive: [
  476. {
  477. breakpoint: 1200,
  478. settings: {
  479. slidesToShow: 1,
  480. slidesToScroll: 1,
  481. }
  482. },
  483. {
  484. breakpoint: 992,
  485. settings: {
  486. slidesToShow: 1,
  487. slidesToScroll: 1,
  488. }
  489. },
  490. {
  491. breakpoint: 768,
  492. settings: {
  493. slidesToShow: 1,
  494. slidesToScroll: 1,
  495. }
  496. },
  497. {
  498. breakpoint: 576,
  499. settings: {
  500. slidesToShow: 1,
  501. slidesToScroll: 1,
  502. }
  503. }
  504. ]
  505. });
  506. //========================================
  507. // TEAM SLIDER
  508. //========================================
  509. $('.team-slider').slick({
  510. dots: false,
  511. infinite: true,
  512. autoplay: false,
  513. arrows: true,
  514. speed: 800,
  515. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  516. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  517. slidesToShow: 4,
  518. slidesToScroll: 1,
  519. responsive: [
  520. {
  521. breakpoint: 1200,
  522. settings: {
  523. slidesToShow: 3,
  524. slidesToScroll: 3,
  525. }
  526. },
  527. {
  528. breakpoint: 992,
  529. settings: {
  530. slidesToShow: 3,
  531. slidesToScroll: 3,
  532. }
  533. },
  534. {
  535. breakpoint: 768,
  536. settings: {
  537. slidesToShow: 2,
  538. slidesToScroll: 2,
  539. }
  540. },
  541. {
  542. breakpoint: 576,
  543. settings: {
  544. slidesToShow: 1,
  545. slidesToScroll: 1,
  546. }
  547. }
  548. ]
  549. });
  550. //========================================
  551. // ISOTOPE SLIDER
  552. //========================================
  553. $('.isotope-slider').slick({
  554. dots: false,
  555. infinite: true,
  556. autoplay: false,
  557. arrows: true,
  558. speed: 800,
  559. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  560. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  561. slidesToShow: 5,
  562. slidesToScroll: 2,
  563. responsive: [
  564. {
  565. breakpoint: 1200,
  566. settings: {
  567. slidesToShow: 5,
  568. slidesToScroll: 2,
  569. }
  570. },
  571. {
  572. breakpoint: 992,
  573. settings: {
  574. slidesToShow: 3,
  575. slidesToScroll: 3,
  576. }
  577. },
  578. {
  579. breakpoint: 768,
  580. settings: {
  581. slidesToShow: 2,
  582. slidesToScroll: 2,
  583. }
  584. },
  585. {
  586. breakpoint: 576,
  587. settings: {
  588. slidesToShow: 2,
  589. slidesToScroll: 2,
  590. }
  591. }
  592. ]
  593. });
  594. //========================================
  595. // FOR PRODUCT POPUP VIEW IMAGE SLIDER
  596. //========================================
  597. $('.preview-slider').slick({
  598. slidesToShow: 1,
  599. slidesToScroll: 1,
  600. arrows: true,
  601. fade: true,
  602. asNavFor: '.thumb-slider',
  603. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  604. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  605. responsive: [
  606. {
  607. breakpoint: 576,
  608. settings: {
  609. slidesToShow: 1,
  610. slidesToScroll: 1,
  611. arrows: true,
  612. }
  613. }
  614. ]
  615. });
  616. $('.thumb-slider').slick({
  617. slidesToShow: 3,
  618. slidesToScroll: 1,
  619. asNavFor: '.preview-slider',
  620. dots: false,
  621. arrows: false,
  622. centerMode: true,
  623. focusOnSelect: true,
  624. responsive: [
  625. {
  626. breakpoint: 992,
  627. settings: {
  628. slidesToShow: 3,
  629. slidesToScroll: 1,
  630. }
  631. },
  632. {
  633. breakpoint: 768,
  634. settings: {
  635. slidesToShow: 3,
  636. slidesToScroll: 1,
  637. }
  638. },
  639. {
  640. breakpoint: 576,
  641. settings: {
  642. slidesToShow: 3,
  643. slidesToScroll: 1,
  644. }
  645. },
  646. {
  647. breakpoint: 400,
  648. settings: {
  649. slidesToShow: 2,
  650. slidesToScroll: 1,
  651. }
  652. }
  653. ]
  654. });
  655. //========================================
  656. // FOR PRODUCT DETAILS IMAGE SLIDER
  657. //========================================
  658. $('.details-preview').slick({
  659. slidesToShow: 1,
  660. slidesToScroll: 1,
  661. arrows: false,
  662. fade: true,
  663. asNavFor: '.details-thumb',
  664. prevArrow: '<i class="icofont-arrow-right dandik"></i>',
  665. nextArrow: '<i class="icofont-arrow-left bamdik"></i>',
  666. responsive: [
  667. {
  668. breakpoint: 576,
  669. settings: {
  670. slidesToShow: 1,
  671. slidesToScroll: 1,
  672. arrows: true,
  673. }
  674. }
  675. ]
  676. });
  677. $('.details-thumb').slick({
  678. slidesToShow: 5,
  679. slidesToScroll: 1,
  680. asNavFor: '.details-preview',
  681. dots: false,
  682. arrows: false,
  683. focusOnSelect: true,
  684. responsive: [
  685. {
  686. breakpoint: 1200,
  687. settings: {
  688. slidesToShow: 3,
  689. slidesToScroll: 1,
  690. }
  691. },
  692. {
  693. breakpoint: 992,
  694. settings: {
  695. slidesToShow: 5,
  696. slidesToScroll: 1,
  697. }
  698. },
  699. {
  700. breakpoint: 768,
  701. settings: {
  702. slidesToShow: 4,
  703. slidesToScroll: 1,
  704. }
  705. },
  706. {
  707. breakpoint: 576,
  708. settings: {
  709. slidesToShow: 4,
  710. slidesToScroll: 1,
  711. vertical: false,
  712. }
  713. },
  714. {
  715. breakpoint: 400,
  716. settings: {
  717. slidesToShow: 3,
  718. slidesToScroll: 1,
  719. vertical: false,
  720. }
  721. }
  722. ]
  723. });