Skip to content

Commit

Permalink
LayoutTree: Add very-fast-fade.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine authored and zukilover committed Nov 17, 2024
1 parent 0ec72f9 commit 0eff9c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@
transition: opacity 0.2s ease-out;
}

/* react-transition-group animation: fade */
.very-fast-fade-enter {
opacity: 0;
}

.very-fast-fade-enter-active {
opacity: 1;
transition: opacity 80ms ease-out;
}

.very-fast-fade-exit {
opacity: 1;
}

.very-fast-fade-exit-active {
opacity: 0;
transition: opacity 80ms ease-out;
}

/* react-transition-group animation: fade-slow-out */
.fade-slow-out-enter {
opacity: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ const LayoutTree = () => {
nodeRef={nodeRef}
key={key}
timeout={durations.get('veryFastDuration')}
classNames='fade'
classNames='very-fast-fade'
unmountOnExit
>
<div
Expand Down

0 comments on commit 0eff9c0

Please sign in to comment.