mirror of
https://github.com/Django-LiveView/docs.git
synced 2024-12-22 19:05:35 +01:00
Add ani title
This commit is contained in:
parent
25023a8da8
commit
d6f7fe4d67
@ -287,6 +287,30 @@ a:hover,
|
|||||||
gap: var(--gap-l);
|
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 */
|
||||||
.docs {
|
.docs {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
BIN
assets/img/title-background.png
Normal file
BIN
assets/img/title-background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 246 KiB |
Loading…
Reference in New Issue
Block a user