Skip to content

Instantly share code, notes, and snippets.

@rexthecoder
Created March 3, 2023 06:44
Show Gist options
  • Save rexthecoder/9b73ab8bb1dc49c6e9203e34f9bd252a to your computer and use it in GitHub Desktop.
Save rexthecoder/9b73ab8bb1dc49c6e9203e34f9bd252a to your computer and use it in GitHub Desktop.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Splash screen */
.intro {
position: fixed;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #040B11;
transition: 1s;
}
.logo-header {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
color: #ffffff;
}
.logo {
position: relative;
display: inline-block;
bottom: -20px;
opacity: 0;
}
.logo.active {
bottom: 0;
opacity: 1;
transition: ease-in-out 0.5s;
text-transform: uppercase;
background-image: linear-gradient(-225deg,
#231557 0%,
#44107a 29%,
#ff1361 67%,
#fff800 100%);
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
color: #fff;
background-clip: text;
fill: transparent;
/* text-fill-color: transparent; */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textclip 2s linear infinite;
display: inline-block;
font-size: 50px;
}
.logo.fade {
bottom: 150px;
opacity: 0;
transition: ease-in-out 0.5s;
text-transform: uppercase;
background-image: linear-gradient(-225deg,
#231557 0%,
#44107a 29%,
#ff1361 67%,
#fff800 100%);
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
color: #fff;
background-clip: text;
fill: transparent;
/* text-fill-color: transparent; */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textclip 2s linear infinite;
display: inline-block;
font-size: 50px;
}
@keyframes textclip {
to {
background-position: 200% center;
}
}
@media only screen and (max-width: 400px) {
.logo.fade {
font-size: 30px;
}
.logo.active {
font-size: 30px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment