Skip to content

MateuszCieplak/layout_stop-watch

 
 

Repository files navigation

Stopwatch task

Create a working stopwatch with minute and second hands using only CSS animations.

  • Use reference image below to create a stopwatch:
    • place it in the center of the page (vertically and horizontally)
    • stopwatch must have a size of 80vmin x 80vmin
    • it should have a 1vmin dotted round border with #000 color
    • minutes hand should have a length of 20vmin and 3vmin width with blue (#0700ff) color
    • seconds hand should have a length of 38vmin and 1.5vmin width with green (#2c8000) color
    • the center of the stopwatch should be a circle with a diameter of 5vmin and 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 60s for the seconds hand to make a full circle.
  • For minutes hand use steps animation with 60 steps. It should take 60min for 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 10s for the seconds hand to make a full circle (change animation duration)
  • it will take only 10min for the minutes hand to make a full circle (change animation duration)

❗️ Add the modifier to the initial markup for Tests. ❗️ Mentors will remove it via Dev Tools and check is Basic functionality works as expected.

Here are the Layout Tasks Instructions

reference image speed-up animation demo

Checklist

❗️ Replace <your_account> with your Github username and copy the links to 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 correct arrows size
  • All Typical Mistakes from BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.3%
  • HTML 10.2%
  • SCSS 0.5%