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
2 answers

Image counter in ResponsiveSlides

Any way to show counter in ResponsiveSlides image
user2746367
0
votes
1 answer

Trying to use ResponsiveSlides on drupal site but getting a console error

I am trying to implement the ResponsiveSlides (http://responsiveslides.com/) to my local drupal instance but anyway I configure the JS code I get a "TypeError: $ is not a function $(function () {" I tried to put the JS code right in the html.tpl.php…
Alpdog14
  • 129
  • 2
  • 14
0
votes
2 answers

Responsive content slider with jquery

I need responsive slider that can slide elements independently. This site http://www.youxithemes.com/live_previews/joiee/ has the slider that I need, but it seems they used revolution slider for wordpress. I am developing my own php website and can…
Jamol
  • 3,768
  • 8
  • 45
  • 68
0
votes
1 answer

ResponsiveSlides.js slideshow not being called

I am trying to add a responsiveSlides.js slideshow to a website I am working on (here), but the method doesn't seem to be being called. I'm guessing it is just a syntax error, but I can't for the life of me find it. In the head of the site, I have…
lucky.hooligan
  • 81
  • 2
  • 12
0
votes
2 answers

responsive video slider wordpress

I need a free wordpress slider plugin which supports images as well as videos with responsive. I have tried anything slider but it lacks responsiveness for videos. Flex slider have all the features but couldn't find as wordpress plugin. Any help?
lifeline
  • 507
  • 2
  • 16
  • 30
0
votes
1 answer

Why does one of my slides randomly disappear in this slideshow?

Its very annoying and is causing me to lose my mind. I can't for the life of me figure out why this is happening. Here's the link I am using the ResponsiveSlides plugin for the slider - where I would ASSUME that once it reaches the end of the slide,…
Samuel Stiles
  • 2,118
  • 5
  • 22
  • 27
0
votes
1 answer

ResponsiveSlides Fading the pager without affecting content below and responsively?

I have taken the jQuery plugin Responsive Slides and have attempted to make my own modifications to it. Everything is going pretty well, except I'm having an issue with being able to make the pager and next/prev controls fade in when the container…
0
votes
1 answer

Slides JS, portrait orientation Image

I have Slides JS set up on my responsive site. But I'm not able to show the image in a portrait size. Does anyone know of any way to get Slides JS to preserve the aspect ratio and adjust the width of the image based on the max-height? My slide div…
0
votes
2 answers

ResponiveSlides Not Working - Any Browser

I've been unable to get ResponsiveSlides to work on any browser so far (Chrome, Firefox, Safari). I pretty much used the exact code from the site, but here's what I have: In the header:
0
votes
2 answers

My responsive slideshow only shows the first image