Witam.
Zrobiłem tak, że 5 obrazków przesuwa się w lewo w jednej linii. Chciałbym, aby te obrazki przesuwały się 2x w tej samej linii.
Ma to wyglądać w ten sposób: 01, 02, 03, 04, 05, 06, 01, 02, 03, 04, 05, 06 w tej samej linii.
U mnie wygląda to tak:
linia nr 1 ---> 01, 02, 03, 04, 05, 06 (obrazki pojawiają się od razu)
linia nr 2 ---> 01, 02, 03, 04, 05, 06 (obrazki pojawiają się po 3 sekundach)
Obrazki w linii nr 2 znajdują się tuż pod linią nr 1.
Co muszę poprawić w kodzie, aby linia nr 2 pojawiła się tuż obok linii nr 1, a nie pod nią? Czy pomoże tutaj display: inline;?
<div class="photobanner">
<div id="photoSlider">
<div class="photos">
<img src="images/01.jpg" style="margin-top: 15px" />
<img src="images/02.jpg" style="margin-top: 15px" />
<img src="images/03.jpg" style="margin-top: 15px" />
<img src="images/04.jpg" style="margin-top: 15px" />
<img src="images/05.jpg" style="margin-top: 15px" />
<img src="images/06.jpg" style="margin-top: 15px" />
</div>
</div>
</div>
<script type="text/javascript">
setTimeout(function() {
var time = new Date().getTime();
var $target = $('.photobanner').find('div#photoSlider:first');
$target.clone().appendTo('.photobanner');
}, 3000);
</script>
.photobanner
{
overflow: hidden;
background: white;
position: absolute;
left: 225px;
top: 350px;
width: 900px;
}
#photoSlider
{
width: 1400px;
height: 130px;
}
#photoSlider img
{
width: 200px;
height: 100px;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.photos
{
-webkit-animation: bannermove 70s linear infinite;
-moz-animation: bannermove 70s linear infinite;
-ms-animation: bannermove 70s linear infinite;
-o-animation: bannermove 70s linear infinite;
animation: bannermove 70s linear infinite;
}