untuk membuat animasi text berjalan anda dapat menggunakan tag <marquee></marquee>
atribut tag marquee
atribut | fungsi | nilai |
---|---|---|
behavior | jenis scroll | scroll, slide, alternate |
direction | arah scroll text | up, down, left, right |
height | tinggi | px, % |
width | lebar | px, % |
hspace | spasi horizontal | px |
vspace | spasi vertical | px |
loop | berapa banyak bergerak | number |
scrolldelay | berapa lama scroll text | seconds |
scrollamount | berapa lama untuk selesai | number |
penulisan kode :
<marquee behavior='alternate' direction='right' scrollamount='40'>ini adalah text berjalan</marquee>
hasil kode diatas
Komentar