Main Page/styles.css: Difference between revisions
Jump to navigation
Jump to search
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%); | ||
} | } | ||
} | } |
Revision as of 23:43, 24 October 2024
.mainpage-title{ font-size:1.6em; font-weight: bold; } .text-container { width: 200px; overflow: hidden; white-space: nowrap; margin: 0 auto; position: relative; } .text { display: inline-block; width: 200px; font-size: 24px; animation: scroll 6s infinite; } @keyframes scroll { 0%, 16.67% { transform: translateX(0); } 33.33%, 50% { transform: translateX(-100%); } 66.67%, 83.33% { transform: translateX(-200%); } }