import React, { useState } from 'react'; import StoryFixture from './StoryFixture'; import Fade from './transitions/CSSFadeForTransitionGroup'; import Scale from './transitions/Scale'; function FadeAndScale(props) { return (
I will fade
{/* We also want to scale in at the same time so we pass the `in` state here as well, so it enters at the same time as the Fade. Note also the `appear` since the Fade will happen when the item mounts, the Scale transition will mount at the same time as the div we want to scale, so we need to tell it to animate as it _appears_. */} I should scale
); } function Example() { const [showNested, setShowNested] = useState(false); return (

Nested Animations

); } export default Example;