- This topic has 2 replies, 2 voices, and was last updated 6 years, 9 months ago by
balticsamurai.
Author | Posts |
---|---|
balticsamurai
July 18, 2018 at 6:42 am
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I’ve figured out how to add an animation, however, I’d like to repeat animation after a while. E.g. button shakes every 5 seconds. I’m sure it’s doable but currently, I’m either shaking it ‘non-stop’ or shaking it once and done. Thanks. |
Sebastian
July 18, 2018 at 7:20 pm
|
Hey, This is possible, but not using the animation-delay property unfortunately, which just adds a delays before the animation first runs. The solution involves editing the keyframes for the animation. This article explains the method nicely: https://css-tricks.com/css-keyframe-animation-delay-iterations/ For you using Microthemer, I recommend the following:
So the following keyframe code for shake:
Becomes:
Note: for a longer delay, you could change the top row of percentages to: 4%, 8%, 12%,16%, 20% And the second row to: 6%, 10%, 14%,18%, And the last row to: 21% I hope that helps! Cheers, |
balticsamurai
July 19, 2018 at 12:15 am
|
Sebastian, you are awesome! Thanks. |