fix a small mistake in OutfitPreview doAnimations
This commit is contained in:
parent
a142df86cf
commit
fc6258f6e9
1 changed files with 1 additions and 2 deletions
|
@ -41,13 +41,12 @@ function OutfitPreview({ outfitState }) {
|
||||||
export function OutfitLayers({ loading, visibleLayers, doAnimations = false }) {
|
export function OutfitLayers({ loading, visibleLayers, doAnimations = false }) {
|
||||||
return (
|
return (
|
||||||
<Box pos="relative" height="100%" width="100%">
|
<Box pos="relative" height="100%" width="100%">
|
||||||
<TransitionGroup>
|
<TransitionGroup enter={false} exit={doAnimations}>
|
||||||
{visibleLayers.map((layer) => (
|
{visibleLayers.map((layer) => (
|
||||||
// We manage the fade-in and fade-out separately! The fade-out
|
// We manage the fade-in and fade-out separately! The fade-out
|
||||||
// happens here, when the layer exits the DOM.
|
// happens here, when the layer exits the DOM.
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
key={layer.id}
|
key={layer.id}
|
||||||
exit={doAnimations}
|
|
||||||
classNames={css`
|
classNames={css`
|
||||||
&-exit {
|
&-exit {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
Loading…
Reference in a new issue