Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save paulodutra/ecb02ccb12403b83b8d5d800da5e6d35 to your computer and use it in GitHub Desktop.
Save paulodutra/ecb02ccb12403b83b8d5d800da5e6d35 to your computer and use it in GitHub Desktop.
exemplo-de-component-com-animacao-para-error-404
import React from 'react';
import ReactBodyMovin from 'react-bodymovin';
import NotFoundAnimation from './../animations/error-404.json';
const NotFound = () => {
//constante de configuração do ReactBodyMovin
const bodyMovinOptions = {
loop: true,
autoplay: true,
prerender: true,
animationData: NotFoundAnimation
};
return (
<div>
<ReactBodyMovin options={bodyMovinOptions}/>
</div>
)
}
export default NotFound;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment