Skip to content

Commit

Permalink
Version with working animations and fixed window width
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Marat200118 authored Jan 26, 2024
2 parents 8ed98ef + 80d684e commit 3927d8a
Show file tree
Hide file tree
Showing 5 changed files with 656 additions and 474 deletions.
64 changes: 64 additions & 0 deletions assets/svg/rails-horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 53 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ body {
min-height: 100vh;
background-color: var(--light-color);
scroll-behavior: smooth;
}

.site-wrapper {
overflow-x: hidden;
}

Expand Down Expand Up @@ -384,6 +387,9 @@ section {
align-items: center;
margin-top: 3rem;
margin-bottom: 3rem;
background-image: url("../assets/svg/rails-horizontal.svg");
background-repeat: repeat-x;
background-size: 20rem;
}

.investment-item p {
Expand Down Expand Up @@ -470,6 +476,7 @@ section {
margin: 0 auto;
}


.animated-digit {
font-size: clamp(2rem, 8vw, 4rem);
line-height: 1;
Expand Down Expand Up @@ -584,6 +591,12 @@ section {
align-items: center;
}

/* .animation-text {
position: absolute;
left: 10rem;
top: -2rem;
} */

.animation-text__line {
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -663,11 +676,21 @@ section {

}

.material-symbols-outlined {
font-size: var(--font-size-big-title) !important;
}

.animation-container {
display: flex;
flex-direction: column-reverse;
}

/* * css media query */

@media (min-width: 768px) {

.ahead-animation {
margin-top: 2rem;
display: block;
width: 80%;
}
Expand Down Expand Up @@ -780,6 +803,29 @@ section {
flex-shrink: 0;
}

.investment-item:first-of-type {
width: 60vw;
align-items: baseline;
}

.investment-item:first-of-type h3 {
display: flex;
align-items: center;
animation: bouncing 2s infinite ease-in-out;
}

@keyframes bouncing {
25% {
transform: translateX(0);
}
75% {
transform: translateX(3rem);
}
100% {
transform: translateX(0);
}
}

.investment-left, .investment-right {
width: 50%;
}
Expand All @@ -793,7 +839,7 @@ section {
color: var(--orange);
text-align: left;
}

.stories-links p {
margin-top: 0;
}
Expand Down Expand Up @@ -1030,4 +1076,10 @@ section {
.text-content {
flex-direction: row;
}

.animation-container {
display: flex;
flex-direction: row;
}

}
Loading

0 comments on commit 3927d8a

Please sign in to comment.