Questions tagged [responsive-slides]

ResponsiveSlides.js is a jQuery plugin that automatically creates responsive slider using images inside a container.

ResponsiveSlides.js is a tiny jQuery plugin that creates a responsive slider using list items inside <ul>. It works with wide range of browsers including all IE versions from IE6 and up.

It also adds css max-width support for IE6 and other browsers that don't natively support it. Only dependency is jQuery (1.6 and up supported) and that all the images are the same size.


Features


  • Fully responsive
  • 1kb minified and gzipped
  • CSS3 transitions with JavaScript fallback
  • Simple markup using unordered list
  • Settings for transition and timeout durations
  • Multiple slideshows supported
  • Automatic and manual fade
  • Works in all major desktop and mobile browsers
  • Captions and other html-elements supported inside slides
  • Separate pagination and next/prev controls
  • Possibility to choose where the controls append to
  • Possibility to randomize the order of the slides
  • Possibility to use custom markup for pagination
  • Can be paused while hovering slideshow and/or controls
  • Images can be wrapped inside links
  • Optional 'before' and 'after' callbacks

Usage


1. Link files

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="responsiveslides.min.js"></script>

2. Add Markup

<ul class="rslides">
  <li><img src="1.jpg" alt=""></li>
  <li><img src="2.jpg" alt=""></li>
  <li><img src="3.jpg" alt=""></li>
</ul>

3. Add CSS

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}
.rslides li {
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100%;
    left: 0;
    top: 0;
}
.rslides li:first-child {
    position: relative;
    display: block;
    float: left;
}
.rslides img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    border: 0;
}

4. Hook up the slideshow

<script>
  $(function() {
    $(".rslides").responsiveSlides();
  });
</script>

5. Options you can customize

$(".rslides").responsiveSlides({
    auto: true,             // Boolean: Animate automatically, true or false
    speed: 500,             // Integer: Speed of the transition, in milliseconds
    timeout: 4000,          // Integer: Time between slide transitions, in milliseconds
    pager: false,           // Boolean: Show pager, true or false
    nav: false,             // Boolean: Show navigation, true or false
    random: false,          // Boolean: Randomize the order of the slides, true or false
    pause: false,           // Boolean: Pause on hover, true or false
    pauseControls: true,    // Boolean: Pause when hovering controls, true or false
    prevText: "Previous",   // String: Text for the "previous" button
    nextText: "Next",       // String: Text for the "next" button
    maxwidth: "",           // Integer: Max-width of the slideshow, in pixels
    navContainer: "",       // Selector: Where controls should be appended to, default is after the 'ul'
    manualControls: "",     // Selector: Declare custom pager navigation
    namespace: "rslides",   // String: Change the default namespace used
    before: function(){},   // Function: Before callback
    after: function(){}     // Function: After callback
});

Resources


111 questions
5
votes
3 answers

How do I make my jQuery slides responsive?

I'm working on a website for personal practice, and I've integrated a jQuery slide show for some photographs. My problem is that I can't figure out how to make these slides responsive when increasing and decreasing the screen size. I've checked what…
stfrdr
  • 51
  • 2
3
votes
1 answer

ResponsiveSlide.js not working properly

I am trying to create a slide show for my dynamically created images. The directory path to the images is returned as a response from ajax call and again another ajax call is made which would create html structure for my slideshow and return it as…
roger_that
  • 9,493
  • 18
  • 66
  • 102
3
votes
1 answer

Adding touch swipe to responsiveslides.js

I am currently trying to add the ability to swipe left and right on touch devices between slides. I am using http://www.responsiveslides.com and http://labs.rampinteractive.co.uk/touchSwipe/demos I know there are plugins that do both, but I love the…
Rich
  • 103
  • 1
  • 2
  • 10
3
votes
2 answers

How to solve height resizing issue during 'fade' transition in Nivo Slider?

I'm using Nivo image slider and it appears, that it resizes images in a wrong way during 'fade' transition. That's a very different problem than the ones I found in the web. All images are 900 x 300 px and the slider is 1000 x 333 px. First image is…
Daniel
  • 538
  • 1
  • 8
  • 21
3
votes
2 answers

Image Slider with "Responsive Width", "Fixed Height", "Center Aligned" and "Auto Rotate"

I need a full width (responsive) slider with fixed height and centered image ( the min width is 960px and people with a wider screens will see the rest of the image (the extra on the left and right)) and it needs to auto-rotate. Now I got the…
user1830235
  • 31
  • 1
  • 1
  • 2
2
votes
1 answer

JavaScript slide stay on the same slide after page refresh

I have a JavaScript slide, inside of it is a gridview. I want to stay on the same slide after the postback or page refresh. The gridview both have different functions. This is my code. Html:
x'tian
  • 734
  • 2
  • 14
  • 40
2
votes
1 answer

Conflict between Magnific Popup and Slick.js and responsive settings

I'm trying to use the Slick.js carousel in responsive display with the Magnific Popup Lightbox. It's working when the slick slider is in its basic form, but when the window is tight enough to trigger the breakpoint and that the "slides to show" are…
Katapult
  • 21
  • 2
2
votes
1 answer

Owl-carousel responsive crop width on resize jquery css

I'm using owl carousel to create a gallery carousel/slide show on our main page. http://owlgraphic.com/owlcarousel/ But we want it to be responsive but not resize the image, instead crop the width equally up to a certain maximum "crop amount". Here…
user3542112
  • 253
  • 1
  • 4
  • 13
2
votes
3 answers

Center ResponsiveSlides nav arrows in slider?

I have a ResponsiveSlides slider on my website, and I'm trying to get the previous/next navigation arrows to be centered vertically in the slider, on the left and right edges of it. They currently move around as I resize my browser, the right/next…
Will Ryan
  • 1,815
  • 4
  • 19
  • 21
2
votes
0 answers

ResponsiveSlides – Current slide number

I’m using ResponsiveSlides.js to display a slideshow on my website: http://moargh.de/daten/responsive-slides/demo/demo.php Can anybody help how to display the current slide number? jQuery $(function () { var total = $('ul#slider4 > li').length; …
user1706680
  • 1,103
  • 3
  • 15
  • 34
2
votes
2 answers

FlexSlider adding gap to right of page

So got a problem with Flexslider. Seems to be adding a gap of about 50 pixels (stretching the page) to the right of the page. If you hover over the slide, the gap disappears. It is really strange. Any ideas? I know it is nothing else on the page…
2
votes
4 answers

Duplicate javascript for Codrops MULTI-LEVEL PUSH MENU

A bit of a newbie when it comes to javascript. My question is regarding a push-menu script from codrops that can be find here: http://tympanus.net/codrops/2013/08/13/multi-level-push-menu/ I am trying to have 2 different nav triggered by 2 different…
2
votes
0 answers

ResponsiveSlides.js custom mouseover controls and other functionality

I'm trying to get ResponsiveSlides.js set up with some custom functionality. I need to be able to use the slider with manual controls that work on mouseover instead of click but go to specific url links on click. I will have four slides in the…
MJ_Fade
  • 21
  • 2
2
votes
3 answers

Disable Jquery plugin/function on the fly

So I have a slideshow in the website, that I want to turn to just a list when the window size is mobile. I was thinking if there is a way to disable the jquery plugin or the functions on window resize to disable the sliding and create mobile styles…
KT.
  • 571
  • 3
  • 6
  • 19
2
votes
1 answer

Trigger ResponsiveSlides.js programmatically

I'm using ResponsiveSlides.js and I am trying to change slides programmatically. I've tried it two ways, and neither have worked. Calling the plugin's slideTo function from a click event on the thumbnail, passing the index of the slide it should go…
frogg3862
  • 491
  • 1
  • 4
  • 19
1
2 3 4 5 6 7 8