This is a code snippet demonstrating a structure I built to document motion guidelines on our design system website.
The website was built using gatsby.js, the documentation content was held in an mdx file, the animation content was held in a json file, the animation was created in lottie finally and inserted into a custom AnimationCard react component using react-lottie-player.
Images are attached to show the overview of the page as well as an animated portion of the page.
motion.mdx: Original page content inmdxformatmoving-moments.jsx: Custom React component to hold motion examplesanimation-card.jsx: Lottie based React component to play animationhover.json: Lottie source file for animation


