Melody Scott
asked on
Bootstrap slider help
Hello- Please see here: test.magickitchen.com/resp onsive/
The slider at the top, I would like two changes.
1. I'd like the picture to be smaller, The size is: 1,140px × 450px (scaled to 1,583px × 625px). I guess that's because of my screen size. I'd like it to be smaller in height, it doesn't really work well on a mobile either.
2. I'd like it to scroll automatically.
Thanks in advance for your help.
The slider at the top, I would like two changes.
1. I'd like the picture to be smaller, The size is: 1,140px × 450px (scaled to 1,583px × 625px). I guess that's because of my screen size. I'd like it to be smaller in height, it doesn't really work well on a mobile either.
2. I'd like it to scroll automatically.
Thanks in advance for your help.
ASKER
In the section (I've added the code at the end):
if($('.animated-fullwidth').length){
jQuery.rsCSS3Easing.easeOutBack = 'cubic-bezier(0.175, 0.885, 0.320, 1.275)';
$('.animated-fullwidth').each(function(index, el) {
$(this).royalSlider({
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
controlNavigation: 'bullets',
autoScaleSlider: true,
autoScaleSliderWidth: 960,
autoScaleSliderHeight: 350,
imageScaleMode: 'fill',
imageAlignCenter:false,
blockLoop: true,
loop: true,
numImagesToPreload: 6,
transitionType: 'fade',
keyboardNavEnabled: true,
block: {
delay: 400
}
});
// You can get slider instance from royalSlider data:
var slider = $(this).data('royalSlider');
slider.startAutoPlay();
});
}
ASKER
I believe I added it correctly, but it isn't auto-playing: http://test.magickitchen.com/responsive/js/custom.js
That's ok, we'll try a different tact. Instead of trying to call a function, just add the autoplay as another option when creating it:
autoPlay: {
// autoplay options go gere
enabled: true,
pauseOnHover: true
}
autoPlay: {
// autoplay options go gere
enabled: true,
pauseOnHover: true
}
ASKER
test.magickitchen.com/resp onsive/js- plugins/ro yalslider/ royalslide r.css
I added it there, but I'm not sure that's what you mean?
I added it there, but I'm not sure that's what you mean?
No...add it to the .js not the .css
Same place you put my code before http:#a40537730, except within the initialization
Ie
Same place you put my code before http:#a40537730, except within the initialization
Ie
if($('.animated-fullwidth').length){
jQuery.rsCSS3Easing.easeOutBack = 'cubic-bezier(0.175, 0.885, 0.320, 1.275)';
$('.animated-fullwidth').each(function(index, el) {
$(this).royalSlider({
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
controlNavigation: 'bullets',
autoScaleSlider: true,
autoScaleSliderWidth: 960,
autoScaleSliderHeight: 350,
imageScaleMode: 'fill',
imageAlignCenter:false,
blockLoop: true,
loop: true,
numImagesToPreload: 6,
transitionType: 'fade',
keyboardNavEnabled: true,
block: {
delay: 400
},
autoPlay: {
// autoplay options go gere
enabled: true,
pauseOnHover: true
}
});
});
}
ASKER
Beautiful! Can I slow it down?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect, thanks for your help- and your patience!
I'm assuming it's this plugin? => http://dimsemenov.com/plugins/royal-slider/documentation/#api
in your
$(document).ready(function
...
slider.startAutoPlay();
...
});