1
1
mirror of https://github.com/primer/css.git synced 2024-11-27 17:52:45 +03:00
css/docs/landing/PrimerCSSAnimation.js
2019-02-21 20:59:16 -05:00

19 lines
431 B
JavaScript

import React from 'react'
import dynamic from 'next/dynamic'
import animation from './PrimerCSSAnimation.json'
const ReactBodymovin = dynamic(() => import('react-bodymovin'), {
ssr: false
})
const bodymovinOptions = {
loop: true,
autoplay: true,
prerender: true,
animationData: animation
}
const PrimerCSSAnimation = props => <ReactBodymovin options={bodymovinOptions} {...props} />
export default PrimerCSSAnimation