owl-carousel

Is it possible to implement a circular/infinite carousel using owl carousel? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-01 02:27:40
I am using owl carousel and it works perfectly except it does not support circular/infinite scrolling. I did search for ideas on google and stackoverflow with no luck. Has anyone implemented circular/infinite scrolling in owl carousel? Owl Carousel does have the loop: true configuration setting. But, there's a few problems I don't like: Owl doesn't goto the first slide when at the end, when dragging (instead of clicking on navigation buttons) Owl rewinds to the first slide, it doesn't wrap around infinitely. This is a big difference, and not nearly as pleasing as a properly circular /

OWL Carousel image not right size at first

杀马特。学长 韩版系。学妹 提交于 2019-12-01 02:17:39
问题 I am using OWL Carousel and I have coded it so there will be one image displayed and then every 15 seconds the next image will slide in. I have set the width to be 100% of the screen so and coded the js appropriately so in theory there should be ONE image at a time at full size....however what happens is it shows all the images rather small and then if i resize the screen even 1 pixel it snaps into how it should be..... any idea on how to avoid having to resize the screen to get the image to

Slide 2 items in OWL Carousel

跟風遠走 提交于 2019-11-30 23:17:47
问题 I am using an OWL Carousel for my slider. What I am trying to do is slide 2 items when next previous is clicked. So its sliding to every second item still showing the second item during the transmission. I have tried to work it out with CSS but no success. Here is my basic setup $("#owl-demo").owlCarousel({ navigation : true, // Show next and prev buttons slideSpeed : 600, paginationSpeed : 400, singleItem:true, // "singleItem:true" is a shortcut for: // items : 2 // itemsDesktop : false, //

Owl Carousel 2 random function

孤人 提交于 2019-11-30 20:02:35
Is there a way in Owl Carousel 2 make a king random function. I need the slides on the page to load randomly. Before in the older Owl Carousel version I did it this way: $(document).ready(function () { //Sort random function function random(owlSelector) { owlSelector.children().sort(function () { return Math.round(Math.random()) - 0.5; }).each(function () { $(this).appendTo(owlSelector); }); } $(".feedback").owlCarousel({ autoPlay: 5000, slideSpeed: 200, items: 1, itemsDesktop: [1199, 1], itemsDesktopSmall: [979, 1], itemsTablet: [768, 1], itemsMobile: [479, 1], autoHeight: true, //Call

Meteor: Call function after template is rendered with data

自闭症网瘾萝莉.ら 提交于 2019-11-30 05:59:50
问题 I have a number of posts that I want to display inside of a carousel. For the carousel, I use OwlCarousel . <div class="owl-carousel" id="featured-carousel"> {{#each featuredPosts}} <div> <h2> {{postTitle}} </h2> </div> {{/each}} </div> I call my carousel like so: Template.featuredCarousel.rendered = function(){ $('#featured-carousel').owlCarousel({ loop:true, autoplay:true, autoplayTimeout:3000, items:1, smartSpeed:1080, padding:80 }); this.rendered = true; }; The result I get is that Owl

Owl Carousel 2 random function

二次信任 提交于 2019-11-30 03:31:00
问题 Is there a way in Owl Carousel 2 make a king random function. I need the slides on the page to load randomly. Before in the older Owl Carousel version I did it this way: $(document).ready(function () { //Sort random function function random(owlSelector) { owlSelector.children().sort(function () { return Math.round(Math.random()) - 0.5; }).each(function () { $(this).appendTo(owlSelector); }); } $(".feedback").owlCarousel({ autoPlay: 5000, slideSpeed: 200, items: 1, itemsDesktop: [1199, 1],

Applying angularjs ng-repeat to owl-carousel

若如初见. 提交于 2019-11-30 02:06:00
<div class="owl-carousel"> <div ng-repeat="items in itemlist"> <a href="series.html"><img ng-src="{{items.imageUrl}}" /></a> </div> <div> <a href="series.html"><img src="http://placehold.it/350x150" /></a> </div> </div> View carousel here: Owl-carousel2 I'm running into an issue where whenever the ng-repeat directive is applied to carousel the items are stacked vertically instead of being layout horizontally. If I leave out ng-repeat and use static items then it works as it should. Is there a directive I can write and apply to owl-carousel to maintain the layout? Also what is about ng-repeat

Add class on OWL Carousel afterLazyLoad

穿精又带淫゛_ 提交于 2019-11-29 18:11:36
I'm using OWL Carousel , trying to add class .border-red to <div class="item"> after lazyLoad, means call this function after lazyLoad afterLazyLoad Example : $(".item").addClass("border-red"); when lazy loaded. Means add class function execute after OWLCarousel lazyLoaded. JS $(document).ready(function() { $("#owl-demo").owlCarousel({ items : 4, lazyLoad : true, navigation : true }); }); HTML <div id="owl-demo" class="owl-carousel"> <div class="item"><img class="lazyOwl" data-src="assets/owl1.jpg" alt="Lazy Owl Image"></div> <div class="item"><img class="lazyOwl" data-src="assets/owl1.jpg"

How to reinitialize Owl Carousel after ajax call?

自闭症网瘾萝莉.ら 提交于 2019-11-29 08:44:00
I am trying to reinitialize owl carousel after a successful ajax call. The ajax call will change the data but the view should stay the same.I am having an issue where the view carousel structure will not reinitialize. I don't know where I did mistake. Ajax Request $(document).on('click', '.category_list', function() { var category_id = $(this).attr('data-id'); var _token = $('#_token').val(); var param = 'category_id=' + category_id + '&_token=' + _token; $.ajax({ type: "POST", datatype: "json", url: "/master/sub_category", data: param, success: function(result) { $('#test').html(result); var

Show part of next and previous items with Owl Carousel 2.0

戏子无情 提交于 2019-11-28 23:14:46
I'm using Owl Carousel 2.0 . I would like to show one item, a half (or less) of the previous item (left side) and a half (or less) of the next item (right side). Just putting a part of them out on the right and on the left side: I've been trying using just CSS ( padding and margin negative with the owl-stage-outer ) but obviously Javascript override them. Here's my code so far: $('.owl-carousel').owlCarousel({ loop: true, margin: 10, nav: true, responsive: { 0: { items: 1 }, 600: { items: 3 } } }) .owl-carousel .item h4 { color: #FFF; font-weight: 400; margin-top: 0em; } .owl-carousel .item {