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

Responsive Slides - overlaps another div when resized

Url - http://www.eden-lime-mortar.co.uk/index18.html As the screen size is reduced (about the point it becomes a tablet potrait view) the responsive slide images overlap the div with the spry menu. Using dreamweaver fluid grid and…
0
votes
0 answers

Image Slideshow widget with AJAX and responsiveSlides.JS not loading (noConflict issue?)

I'm building a simple slideshow widget for my library that displays book covers of new titles. I'm using Jquery AJAX to call an API I built in Codeigniter, and then load responsiveSlides plugin to format the slideshow. The goal is for other…
0
votes
1 answer

ResponsiveSlides.js with Bootstrap 3

I'm trying to center the ResponsiveSlides slider in a bootstrap column, but can't make it work. I have quite big images, so I resized them in the css to 80%. When it was 100% they fit the whole screen, but now they are aligned to the left. Could…
Kaori
  • 49
  • 1
  • 7
0
votes
1 answer

Button does not work on some mobile devices (eg iPhone6, Androids)

this is my first question here and I was adviced to place this topic here. I got a responsive website based on the AURA (PI-)theme. For the xs2 breakpoint I do show another slideshow on the homepage, where I have placed an button as call to action…
0
votes
1 answer

add auto slide functionality in below snippet

I found this snippet on internet for responsive image slider every thing works fine but i need to add auto slide functionality, I am newbie in field of jquery so little help needed. $(document).ready(function(){ var $slider = $('.slider'); …
Rajesh Khadka
  • 55
  • 1
  • 4
0
votes
2 answers

ResponsiveSlides button tabs position

I'm using ResponsiveSlides js to create image sliders. However, is that possible to position the bottom button tabs to be within the image? my test link: http://websolutions.my/slider-test/ I tried editing the css but cant able to do so
clement
  • 91
  • 1
  • 8
0
votes
1 answer

How to overlay div on top of responsive carousel

I am trying to position a logo just above the nav overlaying a responsive carousel. The trouble is, depending on the window size, the logo doesn't stay anchored to the nav. I don't know how to even approach this problem. Here is the project I am…
0
votes
1 answer

How to make javascript button be in fixed place on different screen sizes?

when I view my website on different screen sizes, the button and equalizer move to different points. so how to make it's position fixed on any screen size? button html code:
0
votes
0 answers

Responsiveslides - how to add and remove id on active slide

I want to assign an id on an active slide image and remove it when the active image changes. if ($('.rslides1_on').css('opacity') == '1') { $(".rslides1_on img").attr("id", "gxid"); } else if ($('.rslides1_on').css('opacity') == '0') { …
0
votes
1 answer

Responsive stacking multi-image slider

I'm looking to do the following: Have an auto-playing slider that moves 2 slides at a time. The left/top slide will contain live text within a div, and the right/bottom will be just an image. When the browser resizes I'd like the left section to…
Kits87
  • 31
  • 1
  • 6
0
votes
2 answers

Min height for slideshow not working

My slideshow on top of page has width:100% and height:400px css attributes. But I want to make a responsive web page and make the slideshow height variable according to the width of the page. I have tried using min-height but it doesn't work. I…
0
votes
3 answers

Bootstrap Carousel Slider Doesn't Transition How I Want In Mobile View

I've added a carousel slider to my website http://www.joekonst.com. It looks fine apart from when I view it on my IPhone. When the slide transitions over it kind of flashes white on the left hand side when the slides change. The funny thing is when…
Joe Consterdine
  • 1,035
  • 1
  • 18
  • 37
0
votes
1 answer

Timeout for first slide in slideshow not working (lasts almost double other slides)

I am using a responsive slideshow (http://responsiveslides.com/) for some testimonials on a website with the following settings: jQuery(".rslides").responsiveSlides({ auto: true, // Boolean: Animate automatically, true or false …
user3429208
  • 27
  • 1
  • 7
0
votes
0 answers

Responsive Slides - Not sliding equal times

I am using the responsive slides plugin (http://responsiveslides.com/) on my site. I have set the following options: jQuery(".rslides").responsiveSlides({ auto: true, // Boolean: Animate automatically, true or false speed: 100, …
user3429208
  • 27
  • 1
  • 7
0
votes
0 answers

Load a few images only - responsiveslides.js

I am using the reponsiveslide.js jquery plugin. The problem is the slideshow has contains about 30 images. The page doesn't load properly until ALL of these images are loaded making the rendering of the page very strange/delayed. Is there a way to…
user2713512
  • 241
  • 1
  • 5
  • 16