Guest User

Untitled

a guest
Jul 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. ### PUG
  2.  
  3. .product__carousel
  4. ul#light-slider
  5. li(data-thumb="./img/content/product-carousel.jpg")
  6. .product__carousel-img
  7. img(src="./img/content/product-carousel.jpg" alt='card-img')
  8. li(data-thumb="./img/content/product-carousel.jpg")
  9. .product__carousel-img
  10. img(src="./img/content/product-carousel.jpg" alt='card-img')
  11. li(data-thumb="./img/content/product-carousel.jpg")
  12. .product__carousel-img
  13. img(src="./img/content/product-carousel.jpg" alt='card-img')
  14. li(data-thumb="./img/content/product-carousel.jpg")
  15. .product__carousel-img
  16. img(src="./img/content/product-carousel.jpg" alt='card-img')
  17. li(data-thumb="./img/content/product-carousel.jpg")
  18. .product__carousel-img
  19. img(src="./img/content/product-carousel.jpg" alt='card-img')
  20.  
  21. ### SASS
  22.  
  23. .product__carousel
  24. max-width: 570px
  25. margin-bottom: 70px
  26.  
  27. .lSSlideWrapper
  28. margin-bottom: 30px
  29.  
  30. .lSSlideOuter .lSPager.lSGallery li
  31. max-width: 155px
  32. //width: calc(100 / 3 * 1% - 40px) !important
  33. margin: 7px
  34. border-radius: 1px
  35. background: #FFF
  36. transition: box-shadow .2s
  37.  
  38. &.active
  39. box-shadow: 0 0 0 5px $c-hover
  40.  
  41. a
  42. display: flex
  43. justify-content: space-between
  44. align-items: center
  45.  
  46.  
  47. ### JS
  48.  
  49. const productCarousel = () => {
  50. if ($('.product').length) {
  51. $('.product #light-slider').lightSlider({
  52. gallery: true,
  53. item: 1,
  54. loop: true,
  55. thumbMargin: 30,
  56. thumbItem: 3
  57. });
  58. }
  59. };
Add Comment
Please, Sign In to add comment