mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Add text gradient in home page
This commit is contained in:
25
styles/index/index.module.css
Normal file
25
styles/index/index.module.css
Normal file
@ -0,0 +1,25 @@
|
||||
.gradient {
|
||||
background: rgb(238, 174, 200);
|
||||
background: linear-gradient(
|
||||
45deg,
|
||||
rgba(238, 174, 200, 1) 0%,
|
||||
rgba(148, 187, 233, 1) 100%
|
||||
);
|
||||
background-size: 400%;
|
||||
animation: gradient 5s ease infinite;
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
@keyframes gradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user