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
                }
            }); 
            
        });
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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