-
Notifications
You must be signed in to change notification settings - Fork 11
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
Failed to construct 'ImageData': The source width is zero or not a number. #260
Comments
Hi @sulram, when using You can use the <DotLottieReact hidden ... /> also you can use other CSS properties like <DotLottieReact style={{ visibility: 'hidden' }} ... /> <DotLottieReact style={{ opacity: 0 }} ... /> |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
I experience this issue with Web using vanilla JS, but the parent element also need to be set to display none because I'm working on a mobile nav which at the desktop screen should be hidden. Is there any other workaround to it? |
Still getting this issue with the following code: import { Wordmark } from "@dub/ui";
import { DotLottieReact } from "@lottiefiles/dotlottie-react";
export default function AnimatedWordmark() {
return (
<div className="group relative h-6">
<Wordmark className="absolute h-6 group-hover:opacity-0" />
<DotLottieReact
src="https://lottie.host/f53c93bf-8ae7-4f55-a73e-fbdf36e5c062/4KoxyK0Ruc.json"
playOnHover
loop
className="absolute h-6 opacity-0 group-hover:opacity-100"
/>
</div>
);
} |
Thanks @steven-tey for the code, I'll investigate it further |
Overview
Error that's occuring wrapper with
display:none
and framer motion of a<DotLottieReact />
componentSometimes
Consuming repo
@lottiefiles/dotlottie-react
The text was updated successfully, but these errors were encountered: