Created
December 5, 2019 18:00
-
-
Save paulodutra/ecb02ccb12403b83b8d5d800da5e6d35 to your computer and use it in GitHub Desktop.
exemplo-de-component-com-animacao-para-error-404
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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