fabi83 eredeti hozzászólása
Kicsit bonyolult de majd kibogarászom ami kell. Vagy valami egyszerűbb script kellene nekem ami egy képet "áthúz" balról-jobbra. Meg kell most már tanulnom scriptet írni.
Szia!
Szerintem felesleges javascripttel megoldani, elegánsabb a css3 (persze, ízlések és pofonok):
Kód:
-webkit-transition: all 5000ms cubic-bezier(0.350, 0.335, 0.700, 0.705);
-moz-transition: all 5000ms cubic-bezier(0.350, 0.335, 0.700, 0.705);
-ms-transition: all 5000ms cubic-bezier(0.350, 0.335, 0.700, 0.705);
-o-transition: all 5000ms cubic-bezier(0.350, 0.335, 0.700, 0.705);
transition: all 5000ms cubic-bezier(0.350, 0.335, 0.700, 0.705); /* custom */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.335, 0.700, 0.705);
-moz-transition-timing-function: cubic-bezier(0.350, 0.335, 0.700, 0.705);
-ms-transition-timing-function: cubic-bezier(0.350, 0.335, 0.700, 0.705);
-o-transition-timing-function: cubic-bezier(0.350, 0.335, 0.700, 0.705);
transition-timing-function: cubic-bezier(0.350, 0.335, 0.700, 0.705); /* custom */
Forrás: Ceaser - CSS Easing Animation Tool - Matthew Lein
Amivel még ezt a kódot ki kell majd egészíteni az kb ez (persze nem tudom hogyan szeretnéd...):
Kód:
-webkit-animation-iteration-count: infinite;
Könyvjelzők