-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Created clock #3073
base: master
Are you sure you want to change the base?
Created clock #3073
Conversation
YarynaPuhach
commented
Feb 2, 2024
- DEMO LINK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 🚀
just fix some bem mistakes ;)
&--speed-up { | ||
.stopwatch__minutes-hand { | ||
animation: rotate $min-animation-time-speed-up steps(60) infinite; | ||
} | ||
|
||
.stopwatch__seconds-hand { | ||
animation: rotate $sec-animation-time-speed-up linear infinite; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add modifier inside minutes and seconds class Typical BEM Mistakes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Przepraszam, ale czy możesz mi powiedzieć, jak to zrobić poprawnie?
Ponieważ tutaj wartości animacji dla testów z klasą stopwatch--speed-up zostały po prostu zmienione.
Ale nie rozumiem, jak nadać animacji inne wartości, pod warunkiem, że istnieje klasa stopwatch--speed-up bezpośrednio w w stopwatch__minutes-hand i stopwatch__seconds-hand?
src/styles/stopwatch.scss
Outdated
.page { | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-sizing: border-box; | ||
margin: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
page is not part of stopwatch block Typical BEM Mistakes