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

ResponsiveSlides.js not working in https protocol

when the site is opened vie https:// the slide is not showing. Even to change the location of the files with full path. I mean https://www.example.com/images/...... it is not showing anything. but in http://www.example.com/images/...... it is…
pecito22
  • 125
  • 1
  • 4
1
vote
2 answers

How to add play button inside responsive slide

I have a set of images to display using a responsive slide. I found a link to create responsive slide: http://responsiveslides.com. I don't know to add pause/play button inside the slide. My code is as follows:
JohnMathew
  • 508
  • 1
  • 5
  • 21
1
vote
1 answer

Is ResponsiveSlides working on Safari 9?

I just added responsiveslides to my html and css but it just wont work. I cant find a mistake in my code so i am very frustrated.. Could it be, that responsiveslides is not working on Safari 9.1. ? So this is the script:
Tim
  • 11
  • 1
1
vote
1 answer

Responsive Design for Mobiles

I am new to HTML5 and I have created a website with home page having few icons with absolute position, fixed top and left values. But when the same is opened in mobile device, I have to scroll a lot, and the images are not coming in center as…
1
vote
0 answers

Using ResponsiveSlides.js, making slideshow stop after completed 1 loop

I am using http://responsiveslides.com/ to build a slideshow with custom navigation. I would love this navigation to run through once and then stop back at the first one. Any ideas on how to do this? This my JS for it (basically taken from their…
1
vote
3 answers

Making Materialize slider responsive

I'm trying to make Materialize slider responsive using a CSS, but it's doesn't work properly. when I test my code with the adaptive view of Firefox, I get slider images responsive with a grey background much bigger than the height of the slider…
Abds
  • 21
  • 1
  • 5
1
vote
3 answers

android phone and tablet layout

I have a simple app that works well for phones, with the following structure: Now, I want to take better advantage of the unused space when the user is using the app in a tablet or in landscape mode. Pretty much like this: Is there any way I can…
inrob
  • 4,969
  • 11
  • 38
  • 51
1
vote
0 answers

Randomize Transition Speed in ResponsiveSlides.js

I'm adding a series of ResponsiveSlides to my portfolio site, and I'd like them to randomize their transition speed, so they each slide fades to the next at different intervals. I can change the speed to any fixed interval, but I don't know how to…
user2287917
  • 91
  • 3
  • 14
1
vote
0 answers

Responsive content slider

I am currently using and excellent content slider for team profiles based on: http://tympanus.net/Development/CircularContentCarousel/ I am showing images of team members and when you click the more link, it show more information about that…
1
vote
2 answers

Allign divs to middle of screen by their middle

Using bootstrap, I need to have a page with divs (4 initially) as buttons in the middle of the screen, as below image: I succeeded to do this, but, next, I need to enlarge one of them when mouseover as below image: so, they are aligned by their…
AlBaraa Sh
  • 2,202
  • 3
  • 20
  • 29
1
vote
0 answers

Camera slider issue

I have a website with OpenCart. The slider is called 'camera by pixedelic.com' and I've tried to make that responsive. I saw in a javascript file an option to do that: *mobileEasing : 'yes', //leave empty if you want to display the same…
Alex
  • 35
  • 5
1
vote
2 answers

jssor - Go to next slide when clicking a "next" button or selecting a radio button

I am using the jssor Tab Slider to create an animated form. I want to add the option to move to the next slide within the content (not just by clicking the tabs at the top...) 2 ways I want to move to the next slide: Select a radio button Click…
1
vote
0 answers

how to execute a function after responsive slides initialization but before first transition

I have a div with images scrolling throw responsive slides and next to this div I have navigation buttons to change pages. I need that buttons to be centered vertically with the images and I have a function to do it: function CenterArrow() …
davidmr
  • 125
  • 1
  • 11
1
vote
0 answers

Custom carousel show four items always in center of screen

I have managed to build a custom carousel from code I had for a slider.\ Now all is working but I just have a little issue with lining things up! Here is what I have so far:- http://goo.gl/lw4FVS What I want is for 4 slides to always show within…
1
vote
2 answers

How can I use responsiveslides.js if I'm hosting my site on Google Drive?

I downloaded and implemented the original files from here, but it doesn't play. Interestingly, when I host my files on Dropbox using pancakeapps, it does work. Is there something preventing me from using the script while hosting with Google?
user3578812