fix a small mistake in OutfitPreview doAnimations

This commit is contained in:
Matt Dunn-Rankin 2020-05-02 23:16:26 -07:00
parent a142df86cf
commit fc6258f6e9

View file

@ -41,13 +41,12 @@ function OutfitPreview({ outfitState }) {
export function OutfitLayers({ loading, visibleLayers, doAnimations = false }) {
return (
<Box pos="relative" height="100%" width="100%">
<TransitionGroup>
<TransitionGroup enter={false} exit={doAnimations}>
{visibleLayers.map((layer) => (
// We manage the fade-in and fade-out separately! The fade-out
// happens here, when the layer exits the DOM.
<CSSTransition
key={layer.id}
exit={doAnimations}
classNames={css`
&-exit {
opacity: 1;