Skip to content

Commit

Permalink
Added animations to the home page
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhainaFathimaM committed Jun 5, 2024
1 parent 614ce42 commit c7017a5
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {
color: #000;
margin: 0;
padding: 0;
transition: background-color 0.3s ease-in-out;
}

.info>div {
Expand All @@ -19,6 +20,7 @@ body {
background-color: #e7eefb;

margin-right: 15px;
transition: background-color 0.3s ease-in-out;
}

.dropdown-item {
Expand All @@ -37,6 +39,7 @@ body {
padding: 6px;
border: none;
background-color: transparent;
transition: border 0.3s ease-in-out;
}

#input_data:focus {
Expand Down Expand Up @@ -113,7 +116,7 @@ body {
margin-bottom: 20px;
margin-left: 0px;
margin-right: 20px;

animation: fade-in 1s ease-in-out;
}

#category-grid .card {
Expand All @@ -138,6 +141,7 @@ body {
width: 330px;
border-radius: 20px;
object-fit: fill;
transition: transform 0.3s ease-in-out;
}

#category-grid .cartbtn {
Expand All @@ -155,6 +159,7 @@ body {
background-color: #f1dede;
margin-left: 5px;
margin-bottom: 8px;
transition: background-color 0.3s ease-in-out;

}

Expand All @@ -170,8 +175,7 @@ body {
height: 100%;
object-fit: cover;
transition: transform 0.3s ease 0.1s, width 2s, height 2.5s;


animation: zoomIn 1s ease-in-out;
}


Expand Down Expand Up @@ -679,3 +683,20 @@ html {

}

@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes zoomIn {
from {
transform: scale(0.8);
}
to {
transform: scale(1);
}
}

0 comments on commit c7017a5

Please sign in to comment.