Skip to content

Instantly share code, notes, and snippets.

@XTechnology-TR
Created July 9, 2023 14:59
Show Gist options
  • Save XTechnology-TR/e1c2244cf3476ba410fd1fbf9ceccc5a to your computer and use it in GitHub Desktop.
Save XTechnology-TR/e1c2244cf3476ba410fd1fbf9ceccc5a to your computer and use it in GitHub Desktop.
Incredible
<h1>XTechnology</h1>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: black;
}
h1 {
color: white;
font-family: Helvetica;
font-size: 150px;
letter-spacing: -4px;
position: relative;
color: transparent;
background-image: linear-gradient(to right, white, white, transparent);
background-size: 200% 100%;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-position-x: 200%;
animation: 2s fillup ease-in-out 2s forwards;
}
h1::after {
content: "XTechnology";
position: absolute;
top: 0;
left: 0;
-webkit-text-stroke: 2px;
-webkit-text-stroke-color: white;
-webkit-text-fill-color: transparent;
opacity: 0;
animation: 2s fadein ease-in-out forwards;
}
@keyframes fillup {
from {
background-position-x: 200%;
}
to {
background-position-x: 0%;
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment