Skip to content

Commit

Permalink
added slide in aboutBox
Browse files Browse the repository at this point in the history
  • Loading branch information
its-harshitgoel committed Jun 1, 2024
1 parent 018edc2 commit 251c091
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions src/styles/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
z-index: 1;
font-family: "Black Ops One";
letter-spacing: 0.1rem;

}

.section__subtitle {
Expand Down Expand Up @@ -65,23 +65,45 @@
gap: 3rem;
margin-bottom: 20px;
}

.about__box {
background-color: rgba(255, 255, 255, 0.85);
background-color: white;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 0.75rem;
text-align: center;
padding: 1.5rem 1.25rem;
width: 11em;
z-index: 1;
color: #29001E;
transition: transform 0.3s ease;
transition: transform 0.3s ease;
animation: slideFromLeft 0.5s ease-in-out forwards;
opacity: 0;
}

.about__box:nth-child(2) {
animation-delay: 0.2s;
}

.about__box:nth-child(3) {
animation-delay: 0.4s;
}

.about__box:hover {
transform: scale(0.95);
cursor: pointer;
}

@keyframes slideFromLeft {
from {
transform: translateX(-100%);
opacity: 0;
}

to {
transform: translateX(0);
opacity: 5;
}
}


.button {
display: inline-block;
Expand Down

0 comments on commit 251c091

Please sign in to comment.