D
D
danil_linkins2016-05-11 15:37:59
css
danil_linkins, 2016-05-11 15:37:59

How can I change the page background along with switching the main slider?

The essence is simple, it is necessary that when switching the slider on the main one, its main background changes.
Are there any ready-made solutions or an example, maybe just something related to this topic.
I use bxslider as a slider, but it doesn't matter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2016-05-11
@danil_linkins

He, in the callBacks section, has onSlideAfter

default: function(){}
options: function($slideElement, oldIndex, newIndex){ // your code here }
arguments:
  $slideElement: jQuery element of the destination element
  oldIndex: element index of the previous slide (before the transition)
  newIndex: element index of the destination slide (after the transition)

Fires every time the slide
is changed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question