I want to do an jQuery fade in and fade out in a loop such as here in this jsfiddle
But I want to maintain different css positioning for each of the .trip elements, ie, the elements fading in and out.
For example with the element <div id="3" class="trip">Item3</div>
, I want to add positioning so that it displays left 200px when it fades in, such as in this css:
#3{position:absolute; left:200px;}
AND for another element
#2{position:absolute; left:100px;top:100px;}
With the current code in the jsfiddle, the elements are loaded in the same spot on the page.
I tried adding css to the different elements as I did above, but it still loads in the same place as in the jsfiddle.
How do I fix this?