Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch #3644

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

watch #3644

wants to merge 3 commits into from

Conversation

Diana2369
Copy link

❗️ Replace <your_account> with your GitHub username and copy the links to the Pull Request description:

DEMO LINK
❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.

  • Keyframes implemented using from/to + transform with rotate property
  • Stopwatch is centered and has the correct arrows size
  • All Typical Mistakes from the BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 🎉 Your code meets all the task requirements and constraints effectively. The HTML and SCSS files are well-structured, and the animations are implemented correctly. Keep up the excellent work! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍
Let's improve your code
This part of the task is incomplete
image

Comment on lines 55 to 71
@keyframes second-rotation {
0% {
transform: translate(-50%, -100%) rotate(0deg);
}
100% {
transform: translate(-50%, -100%) rotate(360deg);
}
}

@keyframes minute-rotation {
0% {
transform: translate(-50%, -100%) rotate(0deg);
}
100% {
transform: translate(-50%, -100%) rotate(360deg);
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to duplicate key frames with the same scenario

Suggested change
@keyframes second-rotation {
0% {
transform: translate(-50%, -100%) rotate(0deg);
}
100% {
transform: translate(-50%, -100%) rotate(360deg);
}
}
@keyframes minute-rotation {
0% {
transform: translate(-50%, -100%) rotate(0deg);
}
100% {
transform: translate(-50%, -100%) rotate(360deg);
}
}
@keyframes rotation {
0% {
transform: translate(-50%, -100%) rotate(0deg);
}
100% {
transform: translate(-50%, -100%) rotate(360deg);
}
}

src/index.html Outdated
@@ -17,6 +17,10 @@
/>
</head>
<body>
<h1>Stop watch</h1>
<div class="stopwatch">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the modifier class here .stopwatch--speed-up

Copy link

@vadiimvooo vadiimvooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done

Comment on lines +55 to +71
@keyframes second-rotation {
from {
transform: translate(-50%, -100%) rotate(0deg);
}
to {
transform: translate(-50%, -100%) rotate(360deg);
}
}

@keyframes minute-rotation {
from {
transform: translate(-50%, -100%) rotate(0deg);
}
to {
transform: translate(-50%, -100%) rotate(360deg);
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use single keyframe for both hands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants