Okay
  Public Ticket #214004
Fullscreen Issue
Closed

Comments

  • Mario started the conversation

    Hi, in my template I use javascript to define the Size of the Slider Container (Fullsize) after the Page has been loaded, and I can set the same Size to the containers of your Slider, but as soon as a Slide has changed, the Size gets resized to the wrong dimensions. Also I need to use background-attachment: fixed; which only works on the first Slide before any animations happen.

    So my Question is, can I set some Javascript Actions, when a new Slide starts, so I could dynamically send new css Properties or even different Background Images to the body container?

  •  948
    Max replied

    Hi, I have never dealed with that kind of questions and I don't know if changing the size with javascript customely will work or not. 

    But for your question I think I got an answer, the slider has API, you can check it in the slider settings screen. This API has "revolution.slide.onchange" event that you can use for your needs. 

    Please check it out.