Main Page/styles.css: Difference between revisions

From Center of NeuroWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
}
}
.text-container {
.text-container {
    text-align: center;
     width: 200px;
     width: 100%;
    position: relative;
    height: 50px;
     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;
    height: 100%;
     font-size: 24px;
     font-size: 24px;
     animation: slide 6s infinite;
     animation: scroll 6s infinite;
}
}


.text:nth-child(2) {
@keyframes scroll {
    animation-delay: 2s;
     0%, 16.67% {
}
 
.text:nth-child(3) {
    animation-delay: 4s;
}
 
@keyframes slide {
     0%, 33.33% {
        opacity: 1;
        transform: translateY(0);
    }
    16.67%, 50% {
        opacity: 0;
        transform: translateY(-100%);
    }
    33.33%, 66.67% {
         transform: translateX(0);
         transform: translateX(0);
     }
     }
     29.17%, 37.5%,
     33.33%, 50% {
    62.5%, 70.83% {
         transform: translateX(-100%);
         transform: translateX(-5px);
     }
     }
     33.33%, 66.67% {
     66.67%, 83.33% {
         transform: translateX(5px);
         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%);
    }
}