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
1
vote
1 answer

Why my text is not responsive?

I use responsiveslides library to have responsive scrolling image. So, I wish to utilise the same library to also obtain responsive scrolling text and I wrote this JS code to calculate font height, but it doesn't works: function responsiveText() { …
bit
  • 427
  • 1
  • 6
  • 14
1
vote
2 answers

Responsive image slider to fill div height

I'm trying to get a responsive image slider. It musts: Fill the height of a div Overflow on width Be centered It should be similar to http://www.niraalpina.com. I'm looking for a cross-browser compatible CSS solution that doesn't involve fixed…
1
vote
1 answer

Cycle2 centered with responsive height

I use Cycle 2 Plugin. I'm trying to make a centered slideshow with responsive height. http://jsfiddle.net/Tancrede/gnH9H/4/ .slideshow { height: 100%; width: 100%; margin: 0; z-index: 1000; overflow: hidden; } .slideshow img { …
Tanky
  • 51
  • 3
1
vote
2 answers

Responsive container for responsive image

Currently I have a slider with images that re-size when the window is re-sized. The images re-size fine, however it shows the brown background of the slider container when re-sizing smaller. I would like to be able to have the container re-size…
user2220474
  • 293
  • 1
  • 4
  • 15
1
vote
0 answers

Responsive Slider that supports image map and has a lot of transition

So Nivo Slider is Responsive but does not support image maps. Sliderman supports image map but is not responsive. Is there any slider that fits my needs?
1
vote
1 answer

Flex Slider going in Reverse on last slide

So for some reason, as you can see here: http://icgadv.com.s159009.gridserver.com/tg-beta/ When you click on the buttons below the slider, img a, b , and c, they all correspond to their slide, but the last image button when clicked goes in the…
Adrian Rodriguez
  • 175
  • 1
  • 16
1
vote
2 answers

Proper window resizing of full width

I have an issue with this website when resizing the window: http://goo.gl/BaIuy Let me try to explain. I'm trying to achieve the experience of being in a fishbowl as you can see. It's made with 4 different containers, one for the water background,…
1
vote
0 answers

css image overlapping issue

I'm having an issue with with ResponsiveSlides.js. On my site I'm having an overflow issue with the slider in the clients section. When the slide changes you'll notice the images overlap the red block in the client section. I believe I have added…
0
votes
0 answers

I have a responsive menu that i want to display his respective sections when each is clicked just plain javascript, no libraries or so

[here is the site and the html](https://i.stack.imgur.com/PCaqR.jpg) So guys i want to display on each section his respective articles but i cant seem to get the right function, i tried with changing the display on click but its just not looking…
0
votes
1 answer

Applying Responsive-slides theme to multiple sliders not working

Trying to apply a theme from Responsive-slides for my navigation (http://responsiveslides.com/themes/themes.html second example). The navigation theme works fine when applying to the first slider, but as soon as I change the namespace of the…
0
votes
0 answers

How to add pause and play function on responsive slide

I have to add a slide to my project with pause and play functions.I cannot find any code for pause and play functionality. Why it is not working.
JohnMathew
  • 508
  • 1
  • 5
  • 21
0
votes
1 answer

Slider not responsive and creates extra height into the section below it

I have been working on websites that use the Bodega theme from Select themes and the Select Slider keeps creating weird issues on scroll and in responsive view. The website with issues is this one: http://185.56.86.90/~onetoncr/friedmanpr.com/. And…
0
votes
1 answer

Adding Captions to Bootstrap Responsive Modal Image Gallery

I have a responsive modal image gallery through bootstrap and I'm a beginner at coding. My images were successfully sliding forward and backwards until I tried adding captions. I've added hover captions to every image using this in my javascript: …
0
votes
1 answer

ResponsiveSlides.js Stretching Image

So basically I am using ResponsiveSlides.js in order to have a banner on a website I am creating. I want to restrict the height to a min-height so that the banner is a decent size on mobile devices. However, when setting a min-height this causes…
Daniel Vickers
  • 1,054
  • 1
  • 12
  • 32
0
votes
1 answer

wowslider doesn't work properly after hosting the website

I added a wowslider to my home page. It worked perfectly in my local server (viewed on google chrome [v 55.0.2883.87 m] and safari [v 5.1.7]). However, after hosting it on a live server, i'm having issues with the height of the slider in google…