I'm not sure how to achieve a certain effect in CSS. I have the following HTML:
<div id="container" name="container">
<div id="scroll" name="scroll"></div>
</div>
The scroller is loaded with one image inside the scroller, which has a width: 715px;
[[1]]
When the user clicks on this image, the second image is dynamically added to the first:
[[12]]
And, when a second is pressed, the same thing happens (and so on):
[[1] [2] [3]]
Now, this is where I need help. When the final visible image in the series is pressed, the previous images should scroll left to make room for a new one, putting the first view and placing the new image at the end as such:
[[2] [3] [4]]
<-------------->
-
,
DIV.
[[3] [4] [5]]
< -------------- >
CSS (, ,
). :
1) , ()
715px. , .
2) CSS "" , () -
DIV, 715px ()
-
DIV .
FLIPPED ( , - RTL).
text-align: left, , , .
? . .
{
width: 715px;
height: 228px;
overflow: hidden;
position:relative;
/ * text-align:left; */
}
{
height: 228px;
white-space: nowrap;
direction: rtl;
/* text-align:left; */
}