Skip to content

Commit bbfcc08

Browse files
authored
Merge pull request #695 from Koppeks/feature/koppeks/687
Refactor background gradient and add left-to-right animation
2 parents c7c9a9c + 6f93ca2 commit bbfcc08

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

assets/scss/_styles_project.scss

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -508,23 +508,24 @@ a:not([href]):not([class]):hover {
508508
margin-bottom: 4rem;
509509
font-size: 5rem;
510510
text-align: left;
511-
background: linear-gradient(217deg,
512-
rgba(249, 245, 13, 0.26),
513-
rgba(223, 255, 219, 0.57) 9.03%),
514-
linear-gradient(127deg,
515-
rgba(249, 245, 13, 0.7),
516-
rgba(223, 225, 199, 0.1) 41.12%),
517-
linear-gradient(336deg,
518-
rgba(249, 245, 13, 0.1),
519-
rgba(239, 239, 251, 0.81) 0%);
520-
background-position:
521-
0% 0%,
522-
0% 0%;
511+
background-image: linear-gradient(
512+
135deg,
513+
rgb(224, 242, 157),
514+
rgb(218, 237, 192),
515+
rgb(211, 227, 212),
516+
rgb(213, 232, 213),
517+
rgb(211, 227, 212),
518+
rgb(218, 237, 192),
519+
rgb(224, 242, 157),
520+
);
521+
background-size: 200%;
523522
box-sizing: auto;
524-
color: rgba(0, 0, 0, 0);
523+
color: transparent;
525524
display: block;
526525
text-rendering: optimizelegibility;
527-
background-clip: text, text;
526+
background-clip: text;
527+
-webkit-background-clip: text;
528+
animation: color-shift 8s linear infinite;
528529

529530
@media (max-width: 768px) {
530531
font-size: 3.5rem;
@@ -535,6 +536,13 @@ a:not([href]):not([class]):hover {
535536
// }
536537
}
537538

539+
@keyframes color-shift {
540+
to {
541+
background-position: -200%;
542+
}
543+
}
544+
545+
538546
.dash-tangle {
539547
width: 78.14231rem;
540548
height: 74.72rem;

0 commit comments

Comments
 (0)