Result
css
#load {
position : absolute ;
width : 600px ;
height : 36px ;
left : 50% ;
top : 40% ;
margin-left : -300px ;
overflow : visible ;
user-select: none ;
cursor : default ;
}
#load div {
position : absolute ;
width : 20px ;
height : 36px ;
opacity : 0 ;
font-family : Helvetica , Arial , sans-serif ;
animation : move 2 s linear infinite ;
transform : rotate ( 180 deg);
color : #35C4F0 ;
}
#load div:nth-child( 2 ) {
animation-delay : 0.2 s;
}
#load div:nth-child( 3 ) {
animation-delay : 0.4 s;
}
#load div:nth-child( 4 ) {
animation-delay : 0.6 s;
}
#load div:nth-child( 5 ) {
animation-delay : 0.8 s;
}
#load div:nth-child( 6 ) {
animation-delay : 1 s;
}
#load div:nth-child( 7 ) {
animation-delay : 1.2 s;
}
@keyframes move {
0% {
left : 0 ;
opacity : 0 ;
}
35% {
left : 41% ;
transform : rotate ( 0 deg);
opacity : 1 ;
}
65% {
left : 59% ;
transform : rotate ( 0 deg);
opacity : 1 ;
}
100% {
left : 100% ;
transform : rotate ( -180 deg);
opacity : 0 ;
}
}
|
html
< div id = "load" >
< div >す</ div >
< div >ま</ div >
< div >て</ div >
< div >し</ div >
< div >ド</ div >
< div >ー</ div >
< div >ロ</ div >
</ div >
|
via
Loading