Changing css properties

rdagnolo's Avatar

rdagnolo

21 Nov, 2012 04:54 PM

Hi,

I want to change a div's background color after going to the slide 2, 3, ...
How can I do it?
Is it possible?

Tks!

  1. Support Staff 1 Posted by Dmitry Semenov on 21 Nov, 2012 07:15 PM

    Dmitry Semenov's Avatar

    Hi,

    API will help you here http://dimsemenov.com/plugins/royal-slider/documentation/#api

    var slider = jQuery('.royalSlider').data('royalSlider');
    slider.ev.on('rsAfterSlideChange', function() {
        console.log(slider.currSlideId);
    });
    

    Dmitry

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