We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The animate function should be able to take in a callback as described in the motionone docs.
animate
In Motion One for Vue, there was an animate.es.js file in the motion module, which contained the extended functionality of the animate function with:
animate.es.js
motion
import { animate as animate$1, withControls } from '@motionone/dom'; import { isFunction } from '@motionone/utils'; import { Animation } from '@motionone/animation'; function animateProgress(target, options = {}) { return withControls([ () => { const animation = new Animation(target, [0, 1], options); animation.finished.catch(() => { }); return animation; }, ], options, options.duration); } function animate(target, keyframesOrOptions, options) { const factory = isFunction(target) ? animateProgress : animate$1; return factory(target, keyframesOrOptions, options); } export { animate, animateProgress };
No response
Without this functionality, the claim
The animate prop accepts all the same values and keyframes as Motion One's animate function.
at Oku Motion docs cannot be made as it is an important feature which prevents the transition from Motion One for Vue to Oku Motion.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Clear and concise description of the problem
The
animate
function should be able to take in a callback as described in the motionone docs.Suggested solution
In Motion One for Vue, there was an
animate.es.js
file in themotion
module, which contained the extended functionality of theanimate
function with:Alternative
No response
Additional context
Without this functionality, the claim
at Oku Motion docs cannot be made as it is an important feature which prevents the transition from Motion One for Vue to Oku Motion.
Validations
The text was updated successfully, but these errors were encountered: