Create a working stopwatch with minute and second hands using only CSS animations.
- Use the reference image below to create a stopwatch:
- place it in the center of the page (vertically and horizontally)
- stopwatch must have a size of
80vminx80vmin - it should have a
1vmindotted round border with#000color - minutes hand should have a length of
20vminand3vminwidth with blue (#0700ff) color - seconds hand should have a length of
38vminand1.5vminwidth with green (#2c8000) color - the center of the stopwatch should be a circle with a diameter of
5vminand orange (#f6a603) color
- The starting position of the hands should be at the top.
- The stopwatch should be animated infinitely.
- For seconds hand use animation with even speed, without acceleration and deceleration. It should take the
60sfor the seconds hand to make a full circle. - For minutes hand use steps animation with 60 steps. It should take the
60minfor the minutes hand to make a full circle.
In addition to the basic functionality create a BEM modifier called speed-up for your stopwatch block:
- it will take only
10sfor the seconds hand to make a full circle (change animation duration) - it will take only
10minfor the minutes hand to make a full circle (change animation duration)
❗️ Create an HTML element with the class stopwatch (this element is required for the tests). ❗️ Add the modifier to the stopwatch for tests. ❗️ Mentors will remove it via Dev Tools and check if Basic functionality works as expected.
Here are the Layout Tasks Instructions
Important note: In this task, you are allowed to link *.scss files directly in HTML <link> tags using href attribute.
This is possible because we use the Parcel library to bundle your solution's source code.
❗️ Replace <your_account> with your GitHub username and copy the links to the Pull Request description:
❗️ 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 Mistakesfrom theBEMlesson theory are checked. - Code follows all the Code Style Rules ❗️

