1
1
mirror of https://github.com/primer/css.git synced 2024-12-27 08:05:06 +03:00

remove animation

This commit is contained in:
Emily Plummer 2019-09-24 10:12:10 -07:00
parent 1461944683
commit 4fd3fcdef5
3 changed files with 1 additions and 20 deletions

View File

@ -5,8 +5,6 @@ import React from 'react'
import {version} from '../../../../../package.json'
import {ReactComponent as HeroIllustration} from '../../../hero-illustration.svg'
const HeroAnimation = loadable(() => import('../../../hero-animation'), {fallback: <HeroIllustration />})
function Hero() {
return (
<Box bg="black" py={6}>
@ -17,7 +15,7 @@ function Hero() {
<Text as="p" fontFamily="mono" mt={0} mb={2} color="blue.3" fontSize={2}>
v{version}
</Text>
<HeroAnimation />
<HeroIllustration />
</Container>
</Box>
)

View File

@ -1,16 +0,0 @@
import React from 'react'
import ReactBodymovin from 'react-bodymovin'
import heroAnimation from './hero-animation.json'
const bodymovinOptions = {
loop: true,
autoplay: true,
prerender: true,
animationData: heroAnimation
}
function HeroAnimation() {
return <ReactBodymovin options={bodymovinOptions} />
}
export default HeroAnimation

File diff suppressed because one or more lines are too long