Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

owl.js cdn

<!-- owl carousel css link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
  
<!-- owl carousel theme.css link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">  

<!-- owl carousel js file -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>

// owl carousel init
	$('.owl-carousel').owlCarousel({
		loop: true,
		autoplay: true,
		autoplayTimeout: 5000,
		autoplayHoverPause: true,
		dots: true,
		stagePadding: -5,
		responsiveBaseElement: 'body',
		responsive: {
			0: {
				items: 1,
			},
			700: {
				items: 2,
			},
			1220: {
				items: 3,
			},
		},
	});

// add html class
 owl-carousel owl-theme

Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery get left position 
Javascript :: axios call error handling 
Javascript :: how can i validate a password without regex in js 
Javascript :: js id generator 
Javascript :: jquery growl cdn 
Javascript :: webpack react proxy not working 
Javascript :: contains is not a function javascript 
Javascript :: for element in string js 
Javascript :: getelementsbyclassname remove class 
Javascript :: how to trap js errors window.onerror 
Javascript :: substring javscript 
Javascript :: alert and prompt in javascript 
Javascript :: javascript base 10 to base 2 
Javascript :: search in string array javascript 
Javascript :: Could not find the drag and drop manager in the context of ResourceEvents. Make sure to wrap the top-level component of your app with DragDropContext app.js 
Javascript :: chrome.tabs.query( 
Javascript :: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string. 
Javascript :: createrouter vue history remove Hash 
Javascript :: jquery table row count 
Javascript :: window.location.href another tab 
Javascript :: get object value in node js 
Javascript :: filter array of even numbers 
Javascript :: deploy react js heroku 
Javascript :: javascript trigger change event 
Javascript :: how to create a form without a submit button javascript 
Javascript :: jquery find by innertext 
Javascript :: how to check all elements in array includes in another array javascript 
Javascript :: how to debug jest test vscode 
Javascript :: javascript object to query params 
Javascript :: expo open app settings 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =