0

View my source here: http://codepen.io/anon/pen/Bvkjx

Notice that the content rotates correctly, and so does the background image.

Now, is it possible to maintain for example

<p>SOME CONTENT1</p> 

and only rotate the background images?

For unslider go here

Lee Taylor
  • 7,155
  • 14
  • 29
  • 44
AntonB
  • 2,504
  • 1
  • 27
  • 37
  • 1
    While examples are great and should be encouraged, they should not be used in place of including the relevant code in the question itself. Please include the relevant code. – Jon P Nov 01 '13 at 03:15

1 Answers1

1

If you would just like to change the background image, you can do it with either Javascript or jQuery:

Javascript:

document.getElementById("some-li-id").style.backgroundImage="url(some-img.png)";

jQuery:

$("#some-li-id").css("background-image","url(some-img.png)");

If you would like to animate the background image change, you can do something like the answer to this question (you aren't limited to using .fadeIn/.fadeOut).

Community
  • 1
  • 1
Brent Barbata
  • 3,501
  • 3
  • 23
  • 21