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

[Question] Control animation speed #14

Open
lonix1 opened this issue Jul 27, 2019 · 1 comment
Open

[Question] Control animation speed #14

lonix1 opened this issue Jul 27, 2019 · 1 comment

Comments

@lonix1
Copy link

lonix1 commented Jul 27, 2019

The css animations go from 0 to 50 to 100%, so they are fast by default.

So is it possible to control the speed, to make the animations slower?

@BrandonSchreck
Copy link

BrandonSchreck commented Dec 9, 2022

Using the la-timer as an example...changing the following properties will increase (with lower number) or decrease (with higher number) the speed of the seconds hand.

.la-timer>div:before,
.la-timer>div:after {
-webkit-animation: timer-loader 12ms infinite linear;
  -moz-animation: timer-loader 12ms infinite linear;
  -o-animation: timer-loader 12ms infinite linear;
  animation: timer-loader 12ms infinite linear;
}

And changing the the following will increase (with lower number) or decrease (with higher number) the speed of the minutes hand.

.la-timer>div:after {
-webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
  -o-animation-duration: 1s;
  animation-duration: 1s;
}

Here is an example you can play around with:
https://jsfiddle.net/bschreck86/obvwfj0p/9/

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

No branches or pull requests

2 participants