A
A
AltaiR2016-09-23 17:17:38
css
AltaiR, 2016-09-23 17:17:38

Is there a jQuery slider that changes the background-image value in css?

Good evening. Advise if there is such a slider that would change the background-image value in css with slide switching buttons. You just need to change the address to the picture in and not add some other styles, for example, stretching the picture to the entire window. Thank you )

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2016-09-23
@iiiBird

I have not seen such, but it is done with a simple script.
just also put img in the slider, but make it display: none;
and in the script already for the div in which your img are located, you set the background, which you take from src

A
Amir Alimzhanov, 2017-12-13
@Amirez

Make several classes with different background-images and use js to substitute them to the block or me in the style attribute. But why is this, for what purposes, say? Maybe we can find a better way for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question