GithubHelp home page GithubHelp logo

layout_stop-watch's Introduction

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 ❗️

layout_stop-watch's People

Contributors

danheim avatar elena-brv avatar ihor-karpyn avatar illiarerun avatar irenhh avatar mgrinko avatar mhrynko avatar mykhalenych avatar oleksiiblezniuk avatar olexandr6 avatar ost-ptk avatar sergii-nosachenko avatar tiserett avatar vinniej-2k20 avatar vladimir-beliy avatar yuriiholiuk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.