Created
December 5, 2019 17:48
-
-
Save paulodutra/ccd1e215d0990082e0a63ea6bde73558 to your computer and use it in GitHub Desktop.
exemplo-de-component-com-animacao-para-error-500
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 ErrorServerAnimation from './../animations/error-500.json'; | |
const ErrorServer = () => { | |
//constante de configuração do ReactBodyMovin | |
const bodyMovinOptions = { | |
loop: true, | |
autoplay: true, | |
prerender: true, | |
animationData: ErrorServerAnimation | |
}; | |
return ( | |
<div> | |
<ReactBodyMovin options={bodyMovinOptions} /> | |
</div> | |
) | |
} | |
export default ErrorServer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment