Skip to content

Commit

Permalink
Merge pull request #65 from GeorgiySergeev/how-it-gif-and-animations
Browse files Browse the repository at this point in the history
How it gif and animations
  • Loading branch information
GeorgiySergeev committed May 30, 2023
2 parents 48b6160 + b1cc3f8 commit 3a60c89
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 4 deletions.
89 changes: 88 additions & 1 deletion src/css/how-it-works.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
video {
object-fit: fill;
}
.ruls {
padding-top: 50px;
padding-bottom: 30px;
Expand Down Expand Up @@ -58,7 +61,7 @@
justify-content: center;

flex-wrap: wrap;
gap: 20px;
gap: 20px;
}

@media only screen and (min-width: 768px) {
Expand Down Expand Up @@ -103,14 +106,98 @@

background-color: var(--btn-bg-color-norm);
border-radius: 200px;

animation-name: jump-1;
animation-duration: 7s;
animation-iteration-count: infinite;



}

@keyframes jump-1 {

0% {
scale: 1;
}

8% {
scale: 1;
}

14% {
scale: 1.2;
}

24% {
scale: 1;
}

100% {
scale: 1;
}

}

.link-how-it:first-child .title-box-how-it {
background-color: var(--primary-bg-color);
animation-name: jump;

}

@keyframes jump {

0% {
scale:1;
}

6% {
scale: 1;
}

12% {
scale: 1.2;
}

22%{
scale: 1;
}

100% {
scale: 1;
}
}

.link-how-it:last-child .title-box-how-it {
background-color: var(--yellow-bg);
animation-name: jump-2;
}

@keyframes jump-2 {


0% {
scale: 1;
}

10% {
scale: 1;
}

18% {
scale: 1.2
}

26% {
scale: 1;
}


100% {
scale: 1;
}


}

@media only screen and (min-width: 768px) {
Expand Down
Binary file removed src/img/how-it/deck-gif.gif
Binary file not shown.
Binary file added src/img/how-it/deck-gif.mp4
Binary file not shown.
8 changes: 5 additions & 3 deletions src/partials/how-it-works.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ <h3 class="title-card-how-it">Third Step</h3>
</ul>

<div class="box-gif">
<img
src="./img/how-it/deck-gif.gif"
<video
src="./img/how-it/deck-gif.mp4"
class="gif-how-it"
alt="fruits"
width="860"
height="476"
loading="lazy"
/>
autoplay=""
loop
></video>
</div>
</div>

0 comments on commit 3a60c89

Please sign in to comment.