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: | width: auto; | ||
overflow: hidden; | overflow: hidden; | ||
white-space: nowrap; | white-space: nowrap; | ||
Line 13: | Line 13: | ||
.text { | .text { | ||
display: inline-block; | display: inline-block; | ||
width: | width: auto; | ||
font-size: 24px; | font-size: 24px; | ||
animation: scroll 6s infinite; | animation: scroll 6s infinite; |
Revision as of 23:47, 24 October 2024
.mainpage-title{ font-size:1.6em; font-weight: bold; } .text-container { width: auto; overflow: hidden; white-space: nowrap; margin: 0 auto; position: relative; } .text { display: inline-block; width: auto; 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%); } }