Main Page/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
} | } | ||
.text-container { | .text-container { | ||
width: 200px; | |||
width: | |||
overflow: hidden; | overflow: hidden; | ||
white-space: nowrap; | |||
margin: 0 auto; | margin: 0 auto; | ||
position: relative; | |||
} | } | ||
Line 15: | Line 14: | ||
display: inline-block; | display: inline-block; | ||
width: 200px; | width: 200px; | ||
font-size: 24px; | font-size: 24px; | ||
animation: | animation: scroll 6s infinite; | ||
} | } | ||
@keyframes scroll { | |||
0%, 16.67% { | |||
@keyframes | |||
0%, | |||
transform: translateX(0); | transform: translateX(0); | ||
} | } | ||
33.33%, 50% { | |||
transform: translateX(-100%); | |||
transform: translateX(- | |||
} | } | ||
66.67%, 83.33% { | |||
transform: translateX( | transform: translateX(-200%); | ||
} | } | ||
} | } |