oscarviedma

Script para inicializar swiper js y swiper animation

Feb 4th, 2021 (edited)
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <script>
  2. jQuery(document).ready(function( $ ) {
  3. var swiperAnimation = new SwiperAnimation();
  4. var ovDesplazamientoHorizontal = new Swiper(".ov-desplazamiento-horizontal", {
  5. direction: 'horizontal',
  6. slidesPerView: 1,
  7. spaceBetween: 0,
  8. mousewheel: true,
  9. autoHeight: true,
  10. speed: 600,
  11. breakpoints: {
  12. 981: {
  13. speed: 1000,
  14. scrollbar: {
  15. el: '.swiper-scrollbar',
  16. draggable: true,
  17. hide: true
  18. },
  19. },
  20. },
  21. on: {
  22. init: function () {
  23. swiperAnimation.init(this).animate();
  24. },
  25. slideChange: function () {
  26. swiperAnimation.init(this).animate();
  27. }
  28. }
  29.  
  30. });
  31. });
  32. </script>
Add Comment
Please, Sign In to add comment