Skip to content

Commit

Permalink
improved css change png to webp
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaniTheCoder authored May 12, 2024
1 parent 363995e commit 5919445
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
Binary file removed assets/images/background.png
Binary file not shown.
Binary file removed assets/images/logo.png
Binary file not shown.
Binary file removed assets/images/section-2.png
Binary file not shown.
Binary file removed assets/images/welcome_to_codegrive.png
Binary file not shown.
31 changes: 28 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ section{
}
/* section one styling */
.section-1 {
background: url("assets/images/background.png");
background: url("assets/images/background.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: 100%;
text-align: center;
display: flex;
Expand Down Expand Up @@ -240,10 +241,34 @@ dialog div a{
margin:auto;
}
}
@-webkit-keyframes Gradient {
0%{background-position:0% 26%}
50%{background-position:100% 75%}
100%{background-position:0% 26%}
}
@-moz-keyframes Gradient {
0%{background-position:0% 26%}
50%{background-position:100% 75%}
100%{background-position:0% 26%}
}
@keyframes Gradient {
0%{background-position:0% 26%}
50%{background-position:100% 75%}
100%{background-position:0% 26%}
}
@media only screen and (max-width: 1060px){
.section-1 div h1{
font-size: 2.4em;
}


.section-1{
height: 100%;
background: linear-gradient(241deg, rgba(48,35,174,1) 0%, rgba(255,0,153,1) 100%);;
height: 80vh;
/* background: linear-gradient(241deg, rgba(48,35,174,1) 0%, rgba(255,0,153,1) 100%);; */
background: linear-gradient(140deg, rgba(48,35,174,1) 0%, rgba(255,0,153,1) 100%);;
-webkit-animation: Gradient 19s ease infinite;
-moz-animation: Gradient 19s ease infinite;
animation: Gradient 19s ease infinite;
}
.nav{
position:sticky;
Expand Down

0 comments on commit 5919445

Please sign in to comment.