-
Notifications
You must be signed in to change notification settings - Fork 0
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
Animation API #6
Comments
How would |
Well, something like: let animationFunction = () => {
{ animate : [
{cssProperty: value0},
{cssProperty: value1},
{cssProperty: value2},
],
duration: timeInMs,
iterations: iterationCount,
delay: delayValue
};
}; |
How about let animationFunction = () => [
{cssProperty: value0},
{cssProperty: value1},
{cssProperty: value2},
];
let configFunction = () => {
duration: timeInMs,
iterations: iterationCount,
delay: delayValue
} |
So it would be possible to create a animation like this: const fancyAnim = animate(fancyStuff);
const fancyAnim2s = fancyAnim(() => { duration: 2000 });
const fancyAnim3s = fancyAnim(() => { duration: 3000 });
fancyAnim2s(element1);
fancyAnim3s(element2); |
Should be. |
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@stoeffel How about
animate(animationFunction, element)
to useElement#animate
?The text was updated successfully, but these errors were encountered: