Skip to content

Commit

Permalink
a beautiful text gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubashir-Md committed Jan 28, 2024
1 parent 9b0d1da commit a95d8cc
Showing 1 changed file with 37 additions and 19 deletions.
56 changes: 37 additions & 19 deletions public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ div.home {
flex-direction: column;
justify-content: center;
align-items: center;

color: #e8eaed;
}

div.home p.text {
color: #fff;
/* color: #fff; */
font-size: 6rem;
font-weight: 400;
font-family: "Noto Sans Display", sans-serif;
Expand All @@ -26,7 +26,7 @@ div.home p.text {
}

div.home p.last {
color: #fff;
/* color: #fff; */
font-size: 2rem;
font-weight: 300;
font-family: "Noto Sans Display", sans-serif;
Expand All @@ -36,17 +36,15 @@ div.home p.last {
}

span.tsig {
color: #fff;
/* color: #fff; */
font-size: 7rem;
font-weight: 400;
font-family: "Noto Sans Display", sans-serif;
text-align: center;
background: linear-gradient(to bottom right,
#FFFFFF 0%,
#FFEA61 25%,
#FFEA61 50%,
#FFFFB7 75%,
#FFD400 100%);
#086FFF 0%,
#FFDDB7 50%,
#086FFF 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
Expand All @@ -55,48 +53,68 @@ span.tsig {
animation: textShine 3s ease-in-out infinite alternate;
}

@keyframes textShine {
/* @keyframes textShine {
0% {
background-position: 100% 0%;
}
100% {
background-position: 0% 100%;
}
} */

@keyframes textShine {
0% {

background-position: 100% 0%;
}

50% {

background-position: 0% 100%;
}

100% {

background-position: 100% 0%;
}
}

div.home div.down{
div.home div.down {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;

}
div.down a{

div.down a {
margin: 10px;
background-color: transparent;
color: black;
font-size: 1.5rem;
font-weight: 400;
font-family: "Noto Sans Display", sans-serif;
padding: 10px 20px;
border: white 2px
solid;
border: white 2px solid;
cursor: pointer;
transition: all 0.3s ease-in-out;

}
div.down p.last{

div.down p.last {
font-size: 2rem;
font-weight: 400;
font-family: "Noto Sans Display", sans-serif;
text-align: center;
margin: 1rem;

}
a i{

a i {
font-size: 3rem;
color: #FFF;

}


Expand All @@ -116,4 +134,4 @@ a i{
div.home a {
font-size: 1rem;
}
}
}

0 comments on commit a95d8cc

Please sign in to comment.