Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

give multiple class and id for each owl carousel function

$(document).ready(function() {

  $("#owl-demo, #owl-demo-1").each(function() {
    $(this).owlCarousel({
      items : 6, //10 items above 1000px browser width
      itemsDesktop : [1000,6], //5 items between 1000px and 901px
      itemsDesktopSmall : [900,3], // 3 items betweem 900px and 601px
      itemsTablet: [600,2], //2 items between 600 and 0;
      itemsMobile : false // itemsMobile disabled - inherit from itemsTablet option
    });
  });
  // Custom Navigation Events
  $(".next").click(function(){$(this).closest('.span12').find('.owl-carousel').trigger('owl.next');})
  $(".prev").click(function(){$(this).closest('.span12').find('.owl-carousel').trigger('owl.prev');})
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: react 1 to 10 rating 
Javascript :: react Alert when rate changes 
Javascript :: disable pdf download javascript 
Javascript :: jquery split multidimensional array 
Javascript :: angular view not changing on model 
Javascript :: settimerout get throw out after refresh browser 
Javascript :: 11 connection listeners added to [Namespace]. Use emitter.setMaxListeners() to increase limit 
Javascript :: xmlhttprequest set route params 
Javascript :: angular 10 filter date time 
Javascript :: disable find in page chrome through javascript 
Javascript :: lieke==1 
Javascript :: summernote click event jquery 
Javascript :: span color 
Javascript :: how to place text input cursor to start in react native 
Javascript :: formatDuration js 
Javascript :: js merge 2 index declarations for loop 
Javascript :: node sass version 6.0.0 is incompatible with 4.0.0 
Javascript :: straforma in string js 
Javascript :: sending string variable to .net mvc using Ajax JQuery 
Javascript :: javascript split domain 
Javascript :: https - node load testing- 
Javascript :: socket io across two different ports 
Javascript :: override submit button javascript 
Javascript :: php vscode editor.rulers vetical line delimiter line 
Javascript :: javascript firebase kicks out current user 
Javascript :: array destructuring in js 
Javascript :: shopify a problem repeatedly occured on url 
Javascript :: array.includes is not a function react 
Javascript :: how to see a mongo document in a pretty mode 
Javascript :: javascript call function from event handler es6 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =