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
0
votes
1 answer

bigSlide.js - off-screen slide panel navigation

I'm using the excellent bigSlide.js off-screen slide panel navigation plugin (link below). I'm getting an intermittent issue when you scroll up and down the page on a mobile device (iPhone 5) the menu pops out, I can't work out what would be…
Andy
  • 147
  • 2
  • 2
  • 12
0
votes
1 answer

1px glitch in jquery slider

With every slide transition, the image loads 1px up and to the left, then repositions itself in place when the transition is complete. I think the issue is in the CSS/layout of the website. This is only happening in firefox. When I test the slider…
paris
  • 189
  • 2
  • 16
0
votes
2 answers

responsiveslides.js - get current slide

Need to get the 'data-number' value from the current slide that is active in the slider. I want to use this value to show/hide additional info in another div of the page. Or if there is some other way other than adding a specific 'data-number'…
user756659
  • 3,372
  • 13
  • 55
  • 110
0
votes
0 answers

Full-Width-Responsive-jQuery-Slider not working properly?

i had used Full-Width-Responsive-jQuery-Slider-Banner-Rotator-Plugin http://www.jqueryscript.net/slider/Full-Width-Responsive-jQuery-Slider-Banner-Rotator-Plugin.html to get full screen width and i implemented this in my website but i got an…
User2413
  • 605
  • 6
  • 22
  • 51
0
votes
1 answer

Adding text to Jquery responsiveslides slider

Hello Actually i'm using jquery responsiveslides from Responsive slides how can i add text for each slide like in this can some one point me in right direction
Patty31
  • 105
  • 2
  • 2
  • 13
0
votes
1 answer

Responsiveness not working for sliders

I have tried making the sliders responsive but it is not working for me. Out of the 3 sliders, the main slider has been made responsive. But the other two sliders is not able to make responsive. This link will give you a clear picture of my problem:…
Leo T Abraham
  • 2,407
  • 4
  • 28
  • 54
0
votes
0 answers

Responsive slides - How to Add button to slides

I am using responsive slides for my client project. I need to add a "Read more" button on the slider images with links. I have searched through google and stackoverflow to get an expecting answer. So I have decided to ask a question. Below I have…
Guna
  • 74
  • 11
0
votes
1 answer

3 divs next to each other of size 100% with another one as background that contains fluid photos

I want to create a web page that has a photo as background, the background is 300% the screen wide and in every 33.33333% there is a photo centered that is responsive so it can maintain its ratio aspect. My html code: …
Laur Stefan
  • 1,519
  • 5
  • 23
  • 50
0
votes
1 answer

Jquery slider should be responsive

I was wondering if this slider could be responsive at all? This slider works fine as uses a nice way to slide with css. I just need to make it responsive. Currently shows only 6 images but I need to make it to 4 when the width is 780px; I'm not sure…
user2505665
  • 71
  • 3
  • 13
0
votes
0 answers

jquery bxslider to be centered in the page

On my DEMO will be really clear. I got 2 views, created with a function which on resizing the screen change the settings of the plugin. Settings1 has only 1 slide Settings2 has 3 slides The max-width is 1600 and when the setting changes we should…
user2505665
  • 71
  • 3
  • 13
0
votes
1 answer

bxslider reloadSlider reload the slider and brakes the cicle

QI 'm trying to reload the slider in order to have a fully responsive layout. To do that I need to reload the slider! the main issue is that the slider changes because reloads. So it's starts from the first slide every time I resize. could anyone…
user2505665
  • 71
  • 3
  • 13
0
votes
1 answer

clicking one hyperlink to change the css styles of more than one different divs

I am having different div's on my website and I would like to do following when I am clicking one link, that will trigger a change inside the css code of more than one div's. For example if I click on clients I would like to make the ul element…
John Siniger
  • 875
  • 2
  • 16
  • 39
0
votes
1 answer

Jcarousel basic, make it responsive

i have a jcarousel slider on my webpage, the basic version ( the one with only one image display ), i can't seems to resize with media queries the div the jcarousel slider. Here is the HTML CODE
userator
  • 93
  • 2
  • 11
0
votes
1 answer

responsiveslides.js execute code per slide on transition

I'm using ResponsiveSlides.js on my site for a slider. But I'm using JQuery to perform an action within each slide, and I need to call that code each time the slide is made "active". My code looks something like this:
0
votes
1 answer

JQuery ResponsiveSlides Image Slider

Okay so I'm tring to implement a responsive slides element in to my page. However, nothing I seem to do works. First I noticed that in order for the css code to be applied it had to be accessed using ul.name. Now for some reason, the .js file…
Kyle
  • 2,339
  • 10
  • 33
  • 67