- Has been a member for 2-3 years
- Exclusive Author
- Bought between 10 and 49 items
- United States
- Referred between 10 and 49 users
Hey I was just needing to have a dynamic height for my RoyalSlider and this is how I did it:
$('#testimonial-gallery').royalSlider({
captionShowEffects:["fade"],
controlNavThumbs:true,
imageAlignCenter:true,
directionNavEnabled: true,
welcomeScreenEnabled:false,
hideArrowOnLastSlide:true,
//adjust height of slide
afterSlideChange: function(){
//set height variable based on total height of desired selector
var royalSlideHeight = $('.royalCaption:visible .blockquote-wrap').outerHeight();
//animate the height of the entire slider
$('#testimonial-gallery').animate({
height: royalSlideHeight
});
}
});
Hopefully this will help some people. As you can see you’ll have to change the selectors and most likely fiddle with setting the height variable. It’s working pretty well for me now. This slider is awesome, but should have something like this built in.



3638 Purchases
648 Comments