Add ani title

This commit is contained in:
Andros Fenollosa 2024-03-09 17:39:09 +01:00
parent 25023a8da8
commit d6f7fe4d67
2 changed files with 24 additions and 0 deletions

View File

@ -287,6 +287,30 @@ a:hover,
gap: var(--gap-l);
}
/* Animate Background Image */
@keyframes aniTitle {
0% {
background-position: 0% 0;
}
100% {
background-position: 100% 0;
}
}
.hero__title {
background: url(/img/title-background.png) repeat-x;
font-size: 3rem;
background-clip: text;
background-size: cover;
font-weight: bold;
/* Animate Background Image */
-webkit-text-fill-color: transparent;
animation: aniTitle 8s linear infinite;
/* Activate hardware acceleration for smoother animations */
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
}
/* Docs */
.docs {
display: grid;

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB