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

Bootstrap carousel Responsive design using Modernizr.mq

I'm using bootstrap carousel, which my images are coming from the javascript file written in backbone. I'm using modernizr.mq for making the images responsive.But it is not working. Can any one please help me to make my carousel images responsive,…
0
votes
1 answer

jQuery animation causing margin movement, how to prevent this?

I'm using a jQuery animation to make certain images smaller, while other bigger at the same time. The issue is that between making it small, and bigger, my content under the slideshow is jumping, how would I predict what will be the width of my…
HelpNeeder
  • 6,383
  • 24
  • 91
  • 155
0
votes
0 answers

Creating a responsive tabular menu using jQuery

I am trying to make a responsive menu. Once this menu expands, the div with the class of container will shrink to make room for this menu. As of right now, the menu will open but it does not close once one of the buttons are clicked again. Is there…
user1896446
0
votes
2 answers

ResponsiveSlides How do I make the width of the images occupy entire page?

I want make that the width of images ocuppy entire page just like this: http://i1240.photobucket.com/albums/gg491/Nerio_Navea/Screenshots/GoogleChrome2014-12-30220149_zps99e94bc2.png but I can't find a property for this. I'm new using Jquery but I…
nerionavea
  • 13
  • 5
0
votes
1 answer

Bootstrap Carousel Isn't Responsive in Full Screen

I am working on a carousel that is 50% off a page. It is the same one that is in the bootstrap modern business template. I have tried multiple ways to get the images to be responsive when re-sizing the page with no luck. The images are 1920px x…
0
votes
0 answers

newspaper layout with css

is it possible, with css, to change the layout like a newspaper so the articles are displayed on order both in mobile and on desktop without having to use double dom elements or javascript (the texts are off course suppose to load dynamically) see…
WIRN
  • 915
  • 1
  • 16
  • 31
0
votes
0 answers

ResponsiveSlides.js - go to correct slide in list

I'm building a portfolio page and I'm a bit stuck. I basically loop through all images in a specific a folder and create a thumbnail page. Simultaneously, I am building the ResponsiveSlides gallery in a lightbox. If I click on any thumbnail I open…
Charles Ingalls
  • 4,521
  • 5
  • 25
  • 33
0
votes
0 answers

Responsiveslide.js doesn't work

I tried my code in http://jsfiddle.net/3J8vW/22/ and it worked perfectly, but when I tried it on my site it didnt work Maybe I got an error in my js line (function ($) { $('#slider1').responsiveSlides(); }(jQuery)); Website link…
ekclone
  • 1,030
  • 2
  • 17
  • 39
0
votes
2 answers

In search of a responsive gallery

I'm looking to building a website for my photography, something responsive and clean. After some hours of searching Google, I cam across this website: nathanelson I thought it is absolutely perfect, but unfortunately I would have to purcahse a…
Zeke
  • 1
0
votes
1 answer

Need suggestions in Kentico 7 for Responsive Slides

I am using Kentico 7 as the CMS to create the website. I am searching for a Rolling Banner web part, to put on the home page as the head banner, which can: Be responsive. Have caption area. have navigation button on left and right. would be nice to…
Stella
  • 11
  • 1
0
votes
2 answers

responsiveslides.js - Assign specific timeout to each slide

I created a slider with responsiveslides.js. It contains 5 different image slides. I usually can assign a timeout of, for example, 4000 milliseconds, but it will be assigned to every single image of the slider. I would like to assign different…
BotWan
  • 3
  • 2
0
votes
0 answers

jQuery an aspect ratio of an image with 100% width for responsive height

I'd like to have a slideshow fill the screen height and width, but keep it's aspect ratio for the vertical slide effect. It would have to crop some of its (very wide) width on smaller screens and stretch both ways on very large screens. Is there a…
Jan vH
  • 116
  • 1
  • 7
0
votes
1 answer

Vertical text alignment in a DIV - responsive text sizing

I have a wordpress site and I am trying to vertically float text on top of a slider image. I have hard-coded a single static, full width image on my slider widget using the following CSS. .slider-wide { clear: both; width: 100%; height: 560px; …
0
votes
1 answer

JSSOR Slider not resizing with orientation flip on Windows Phones and Androids

I have implemented a JSSOR slider into my responsive redesign on my website. You can view it here. At first, I had an issue with the slider responding to an orientation change on iPhones and iPads. Through a little research I found that I had to…
0
votes
1 answer

CSS opacity transition not working in a double rotate element

In first excuse me for my bad english, I'm French. I'll do the best ! I'm here today because for the first time i don't find an answer to my problem. Monday i need to show a demo of a website and i start to panic ! So, I have a div with a rotate…
Morgann C
  • 1
  • 1