mirror of
https://github.com/primer/css.git
synced 2024-11-27 17:52:45 +03:00
19 lines
431 B
JavaScript
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
|