Skip to content

Commit

Permalink
Update animation for lg-xl screens
Browse files Browse the repository at this point in the history
  • Loading branch information
brunodesde1987 committed Mar 15, 2021
1 parent f6fab27 commit b3e83ac
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ footer a:hover {
.content-container .picture-container {
min-width: var(--lg-xl-size-picture);
min-height: var(--lg-xl-size-picture);
animation-name: slideIn-lg-xl-right;
animation-fill-mode: both;
animation-duration: 800ms;
animation-delay: 400ms;
}

.content-container .picture-container .circle {
Expand All @@ -351,33 +355,45 @@ footer a:hover {

.content-container .bio-container {
text-align: initial;
animation-name: slideIn-lg-xl;
animation-name: slideIn-lg-xl-left;
}

.content-container .bio-container h1 {
font-size: 6rem;
animation-name: slideIn-lg-xl;
animation-name: slideIn-lg-xl-left;
}

.content-container .bio-container p {
font-size: 1.5rem;
animation-name: slideIn-lg-xl;
animation-name: slideIn-lg-xl-left;
}

.content-container .bio-container span {
font-size: 1.2rem;
animation-name: slideIn-lg-xl;
animation-name: slideIn-lg-xl-left;
}
}

@keyframes slideIn-lg-xl {
@keyframes slideIn-lg-xl-left {
from {
margin-left: 50px;
transform: translateX(50px);
opacity: 0;
}

to {
margin-left: 0;
transform: none;
opacity: 1;
}
}

@keyframes slideIn-lg-xl-right {
from {
transform: translateX(-50px);
opacity: 0;
}

to {
transform: none;
opacity: 1;
}
}
Expand Down

0 comments on commit b3e83ac

Please sign in to comment.