Auto play overrides image scale fill

(anonymous)'s Avatar

(anonymous)

21 Apr, 2017 05:11 AM

I want the image to follow the scale fill, but the auto play seems to override. that, is there a work around?

<script>
    jQuery(document).ready(function($) {
        $(".royalSlider").royalSlider({
            // options go here
            // as an example, enable keyboard arrows nav
            keyboardNavEnabled: true,
            imageScaleMode:'fill',
            imageAlignCenter:true,
            loop: true,
            autoScaleSlider: false,
     autoPlay: {
     // autoplay options go gere
     enabled: true,
     pauseOnHover: true,
            delay: 3000,
                   
            
        });
    });
</script>

  1. Support Staff 1 Posted by Dmitry Semenov on 21 Apr, 2017 05:43 AM

    Dmitry Semenov's Avatar

    Hello,

    It seems you're missing closing } for autoPlay object.

       jQuery(document).ready(function($) { 
       
            $(".royalSlider").royalSlider({ 
                keyboardNavEnabled: true, 
                imageScaleMode:'fill', 
                imageAlignCenter:true, 
                loop: true, 
                autoScaleSlider: false, 
                autoPlay: { 
                  enabled: true, 
                  pauseOnHover: true, 
                  delay: 3000
                }
            }); 
            
        });
    
  2. (anonymous) closed this discussion on 02 May, 2017 01:11 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac