Closed (fixed)
Project:
jCarousel
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 10:31 UTC
Updated:
26 Jun 2017 at 07:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
quicksketchUnfortunately responsive carousels are quite challenging (though not impossible). We implemented a responsive jCarousel on http://www.grammy.com that you can look at.
Comment #2
tejaspmehta commentedHello quicksketch,
I saw site and checked responsiveness on home page. This is exactly what i am looking for but can you provide me basic direction ? I can workout with CSS but did not get anything from your css. Like main wrapper of jCarousel dimension settings, view setting for displaying 1 image or 2 image based on screen size, etc.
Thank you
Tejas Mehta
Comment #3
chrishrtmn commentedThe example on the Grammy's website is exactly what I'm looking for as well. To my eye, it looks like CSS changes for each breakpoint, but looks tricky. Some tips on achieving this effect easier would be helpful.
Comment #4
gmclelland commentedLooks like you can do it with the .3 code https://github.com/jsor/jcarousel/issues/365
Comment #5
tejaspmehta commentedthanx for link. i will workout on it.
Comment #6
hydra commentedI have a responsive layout here in my sandbox http://drupal.org/sandbox/Hydra/1593264
It rewrites a bit of css and makes advantage of the adaptive_images module.
Comment #7
nedjoThere are several possible meanings of a responsive carousel, including:
I worked on just the third of these meanings in the attached patch. With it, carousels adjust so that on load and when the page is resized the number of items in the carousel changes to fit the new width.
Specifically:
It's a partial step but probably useful enough to address on its own. Other types of responsiveness could be handled in separate patches.
Comment #8
nedjoNew patch with minor improvements to increase flexibility: don't assume the class name added by views; include outer width in calculating the difference between the clip and container, in case the clip has margin or border width.
Comment #9
nedjoUntil such a time as this is accepted and hits stable, I implemented a version of the patch in the Debut Media feature, #1813678: Make media carousel responsive. See the commit, http://drupalcode.org/project/debut_media.git/commit/7f6e8c3, for an example of how to implement this in a custom module.
Comment #10
lisa.lite commentedpatch #8 does not update the carousel navigation
this code worked for me but is rather a hack than a solution
could you please help me to find better way to update the carousel pager on window resize
Comment #11
bcobin commentedPerhaps there's something to be gained from the below project?
http://drupal.org/project/views_slideshow_liquidcarousel
Comment #12
nedjo@lisa.lite: yes, navigation isn't a feature I've used and I'd overlooked the need to handle it on resize. Thanks for posting your code--it's a good start. Maybe what we want here is a Drupal.jcarousel.removeNavigation method that can be called from the reload callback before adding the navigation again.
@bcobin: I looked at the liquid carousel project but decided against using it as the library doesn't look to be actively maintained and the library and module lack a lot of features that jcarousel has.
Comment #13
rafaqz commentedWorks great. It would be good if the responsive check was exportable for ctools and features.
Comment #14
rafaqz commentedFor anyone who wants ctools export to work for the responsive check you just need to add :
$options['responsive'] = array('default' => 0);at line 18 of jcarousel_style_plugin.inc.
Comment #15
quicksketchI personally don't use jCarousel any more. I've used Flexslider on all my recent projects. Though the Flexslider module has a different set of problems, the Flexslider library itself is quite a bit better than jCarousel. Anyone interested in taking over this project can contact me and I can give you commit access.
Comment #16
peacog commentedHi quicksketch. This is slightly off topic but since you mentioned Flexslider I hope nobody minds: I'd be interested to hear how you use Flexslider as an alternative to jCarousel. Do you use the Flexslider module or do you use the plugin directly? I tried the module and it works great as a slideshow showing one image at a time, but I couldn't see any way to configure it as a carousel of multiple images like jCarousel.
Comment #17
quicksketchThe Views Slideshow module has gotten really good, and although Flexslider doesn't integrate very nicely with it using Flexslider + Views Slideshow is an effective tool for carousels. This combo approach is how we made all the carousels on http://www.grammy.com, both single-item rotators and multiple item rotators.
I tried out the new 0.3.0 version of jCarousel yesterday to see how it compares. It's sort of responsive in that it can chop off items as the window gets smaller (similar to the Liquid Carousel suggested in #11), but it's still not as good as Flexslider, which has the ability to actually resize as the window gets smaller in addition to cropping.
Comment #18
ravi shankar karnati commentedHello lisa,
Where we need to place above code?
Please let me know and thnaks in advance
Comment #19
rafaqz commentedRe-rolled patch from #8 to work with features.
Comment #20
tr33m4n commentedDoesn't seem to set the width to auto, seems to be stuck at 1000px
Comment #21
modiphier commentedHello,
I have added this patch and it worked great however I am wondering if there is a way to retain the full width I have set in my css and not have the next and prev images moved over the images until it goes to responsive viewing. This patch also removed the padding I had between the images. It also ignores my scroll of two items and now scrolls all five while in full view mode.
I need the responsive functionality but I would like to retain the look of the before image attached unless viewed on a device etc.
Thanks,
Paul
Comment #22
mineaeliza commentedGreat patch! thank you!
Comment #23
davidburnsIt appears the person who wrote jcarousel now supports responsive.
http://sorgalla.com/jcarousel/examples/responsive/
Comment #24
patoshi commented#19 tested working.
responsive working along with new checkbox in views.
Comment #25
mindhunter75 commented#19, rafaqz, Thank you very much! This was exactly what i needed, works perfectly!
Comment #26
rahulbaisanemca commentedThank, This patch works for me.
Comment #28
markpavlitski commentedThe patch from #19 has been included in the 7.x-2.7 release. Thanks!
Comment #30
adolfianoh commentedhi, i have a problem with Jcarousel it's not responsive in mobile device view. Is there anyone who know what problem might be?
I am using drupal 8.