Code

Discussion on Bootslider - Responsive Bootstrap CSS3 Slider

Discussion on Bootslider - Responsive Bootstrap CSS3 Slider

By
Cart 551 sales

Grozav does not currently provide support for this item.

77 comments found.

Does not work with wordpress

Simply including the files into a template page does not work (not trying to load it as a plugin obviously).

Even wrapping the code [bootslider.js] in (function($){...})(jQuery) does not allow it to work.. error log shows:

ReferenceError: bootslider is not defined var slider = new bootslider(’#bootsliderContent’, {

Did you try using wp_enqueue_script() as well? I haven’t tried using it in WP yet, I’m planning to create a plugin in the near future.

Hi Alex,

I have a quick issue regarding your Responsive Bootstrap CSS3 Slider.

Great slider by the way! :-)

The project we are using it on can be previewed here:

http://www.the-plan.com.au/

The issue:

When the slider loads initially, the first slide is pushed off the page (slider appears broken). But if the size of the browser is adjusted the slider corrects itself and all appears how it should. If the browser isn’t adjusted all of the slides remain pushed off the page.

Is there a fix for this or does it have something to do with how I have laid up the code?

Any advice would be greatly appreciated!

Thank you for your time and I look forward to your reply :-)

Try doing the following:

Put all the extra design elements (your text) before the .bs-container, not inside of it. Put them inside a
<div style="position:absolute; top: 0; left: 0;" />

I think this would work, as I don’t see any other thing that could interfere with the slider’s functionality.

Hi Alex, we have a winner! :-) We updated all assets with the latest version of the slider and placed the extra design elements in a div outside of the slider with great success!

FYI: we have noticed Firefox has a couple of slight issues: there is extra padding added to the bottom of the page, which can be scrolled vertically, sometimes horizontally depending on the browser size. Also the extra content we have added seems to jump upwards on every transition. Only seems to do this in Firefox, just to let you know.

Thank you once again for your replies and assistance. Very much appreciated!

For the padding: Due to the extra elements, include the following in the CSS file:
.bs-container, .bootslider{
    overflow: hidden!important;
}

Also, add the

 clearfix 
class to your extra elements containers, it will set the height to what it should be.

And then, remove the data-animate-in and data-animate-out from the slides, otherwise, it will set a blank animation instead of the fadeIn you want.

If all else fails, add the following in javascript for a “dirty” quickfix:
setTimeout(function(){
$(window).trigger('resize');
}, 1000);

Hope it helps!

I can’t get any of the live previews to work in IE 11 on Windows 8.1. Is that configuration supported?

I’ll look into it as soon as I get home. There shouldn’t be any compatibility problems, though. Thank you for letting me know.

Can it be used w/o bootstrap and a custom style?

Thanks

Yes, of course. Everything the slider uses can be styled and is marked with simple CSS classes. Thank you in advance for your purchase!

Im thinking of purchasing your slider to replace an old flash slideshow I have on a clients site, but I have a question about the thumbnail feature before buying. How much control do I have over the style and placement of those thumbnails? Your preview just shows them in a strip along the bottom. Via css can I easily resize them, and move them to another location on the page? If I want the thumbnails to display on the right or left side, or in a box format rather than a strip is that possible within the css file?

Hi Patty, You have complete control over the thumbnails and the rest of the slider via CSS. You will have to change a little bit of the JS part as well if you want to fit them in a vertical div with variable number. I’ll help you with that if you need it, of course. Thank you for your interest!

Thanks for the quick response.

Hi

great plugin

can you get the http://themes.grozav.com/bootslider/index-template-product.html example to work in IE8?

for me ie8 is a deal breaker as I must support it

thanks

I’ll include IE8 support in a future update. However it does not support CSS3 transitions, so it will have no animations on the content, unfortunately.

Sorry for the inconvenience!

Hi Alex,

Wonderful piece of code! It implements great within my bootstrap code. I’m wondering, is it possible to only “refresh” the iframe before/when the slide becomes active? (I’m experimenting with autoplay video.)

Thanks in advance,

Paul

Hi Paul, I’ve implemented the “Refresh” so that the video will stop playing after the slide is finished, no matter what the source is. If you use only youtube or vimeo as video sources, I can help you to pause or autoplay the video by implementing the API. Is that what you’re trying to achieve?

Thank you, I’m really glad you’re happy with it!

Alex, yeah that figures, the problem is that autoplay video also starts when another slide is becoming active. I would indeed be really nice if using Youtube & Vimeo I could make the video play only when the slide becomes active. You could help me with that?

I can help, however it’s going to be a little more complicated than the usual slider customization.

First of all, in the bootslider.js file you have a method called self.gotoslide(index).

Inside this method, you will have to make a check like this:
// Here you will have the slide number which contains the video
// The count starts from 0, so the second slide will be 1, third will be 2
// and so on
if(index == 4){
//replace youtubeiframeid with the id="" you gave to your video
var myVideo = document.getElementById('youtubeiframeid');
myVideo .playVideo();
}

//Include youtube API
<script src="http://www.youtube.com/player_api"></script>

I haven’t tested this, but it should work. Hope it helps!

Hello Alex,

Your plugin is really awesome. I bought it today and started trying to use it in my new project I am working on. Though, I faced some difficulties and got two questions.

1. Unfortunately, I couldn’t find out the way to fix slider’s height in percentages – I’d like to have the slider in the center of the screen and to make it remain in the same place and appropriate height while decreasing screen sizes. 2. Can I and if yes how I may add some images of small size to the slider, which will be animated separately? For example – one flies from down, another from top while main large image gets in and out as you have in demo.

I hope I don’t ask too much complicate stuff and hope to receive your kind reply soon.

Sure thing. My email address is alex[at]grozav.com Feel free to send them in anytime.

Hi Alex, I would like to ask you another question. On the screen with the 1440×900, 1366×768 and other resolutions, my images of 1920pxx820px are somehow cut in bottom while in your demo, all images are visible well. How should I modify css or image sizes to achieve the same result – to have all the images fully visible? I look forward to hearing from you soon. Thank you in advance for your kind assistance :)

Hey! Are you using the same size for all of the images? Send me the files to have a look at them again.

Hi there, I use Bootslider in my index.html. But if the picture big enough to fill the device screen, I couldn’t use my finger to scroll down on the picture. Flip left and right is just fine, but the main problem is scrolling. This slider is so perfect, just this little problem, please help me. Sorry my English is not too good. Best wishes.

Hi yohored, really glad you like the slider! A new version will be out soon. Please send me a demo for mobile testing. I’m guessing it’s a preventDefault() problem. I’ll be able to give you a solution after that. Thank you for purchasing!

I just send you a message please check, thanks again

Hi yohored, please send me the the video you were talking about. Thank you!

Hello Alex found out slider is not loading on ie8, none of the images are visible, is there an easy fix?

IE8 doesn’t support jQuery’s load function very well. You could try replacing the loading code with a javascript alternative like this:

Find the following:
$('.bs-background img').each(function() {
            var src = $(this).attr('src');
            var preloadedImage = $(new Image()).attr('src', src);
            preloadedImage.load(function() {
//LOTS OF CODE
                });
});
Replace with:
$('.bs-background img').each(function() {
var src = $(this).attr('src');
var preloadedImage = new Image();

img.onload = function() {
     // COPY THE LOTS OF CODE
}

img.src = src;
});

This solution was found on stackoverflow and has not been tested. I’m not at home this week, therefore I cannot test it myself. Hope it helps!

is there a way to use another image for the thumbnail?

One more question. How to speed down the animations?

For example “fadeIn”

You will need to open the animate.css file and set the animation time manually. For example:

.fadeIn{
    -webkit-animation-duration: 1s !important;
    -moz-animation-duration: 1s !important;
    -ms-animation-duration: 1s !important;
    -o-animation-duration: 1s !important;
    animation-duration: 1s !important;
}

Awesome Slider. I love it that the slider stops when you click on play for any video and starts up again when you pause it :)

Good job.

Thank you tnylea! Glad you like it! :)

Great job a true Web Artisian

Thank you very much gahc!

Awesome plugin. Most likely going to need this in the future. Keep it up!

Thank you houlihandy! I’m sure you’ll enjoy using it!

Very nice! I would recommend this plugin for my next customers, keep them coming!

Hi RedhopIT, thank you very much for that! I’ll definitely keep them coming! :)

Looks great

Glad you like it, Charlie!

Thank you ziyaddin!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey