Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewT98 committed Jan 18, 2025
1 parent 7949765 commit b44882f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
8 changes: 6 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
</head>
<body class="page">
<div class="page__stopwatch stopwatch page__stopwatch--speed-up">
<div class="stopwatch__minutes-hand"></div>
<div
class="stopwatch__minutes-hand stopwatch__minutes-hand--speed-up"
></div>
<div class="stopwatch__center"></div>
<div class="stopwatch__seconds-hand"></div>
<div
class="stopwatch__seconds-hand stopwatch__seconds-hand--speed-up"
></div>
</div>
</body>
</html>
18 changes: 8 additions & 10 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
justify-content: center;
align-items: center;
height: 100vh;

&__stopwatch--speed-up {
.stopwatch__minutes-hand {
animation: minutes 600s steps(60) infinite;
}

.stopwatch__seconds-hand {
animation: seconds 10s linear infinite;
}
}

.stopwatch {
Expand All @@ -36,6 +27,10 @@
top: -10vmin;
transform-origin: bottom center;
animation: minutes 3600s steps(60) infinite;

&--speed-up {
animation-duration: 600s;
}
}

&__center {
Expand All @@ -58,6 +53,10 @@
align-items: center;
transform-origin: bottom center;
animation: seconds 60s linear infinite;

&--speed-up {
animation-duration: 10s;
}
}
}

Expand All @@ -78,4 +77,3 @@
transform: rotate(360deg); /* Кінець анімації (повний оберт) */
}
}
}

0 comments on commit b44882f

Please sign in to comment.