You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having some problems with getting the animation to work when wrapping the <Anime> component with other components. Is this not supported? I could not find any relevant info in the documentation.
Example
Box component
import React from 'react';
export default function Box() {
let style = {
width: '100px',
height: '100px',
background: '#71bed6'
}
return <div style={style}>Box</div>
}
yep.
react-anime use ref callback to add dom target to anime engine,so if you use a Component,
the anime engine will be passed into a component instance, it's will not work well.
I am having some problems with getting the animation to work when wrapping the
<Anime>
component with other components. Is this not supported? I could not find any relevant info in the documentation.Example
Box component
Index.js
I have made the example in codesandbox
It would be easier if I could apply the animation to pre-made components instead of changing all of my components with the
<Anime>
component.The text was updated successfully, but these errors were encountered: