feat: add node minimizing animation (refactoring it later)
This commit is contained in:
parent
21009761f0
commit
d44365578d
3 changed files with 10 additions and 2 deletions
|
|
@ -6,6 +6,13 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.react-flow__node {
|
||||
width: auto;
|
||||
height: auto;
|
||||
border-radius: auto;
|
||||
min-width: inherit;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
|
|
|
|||
|
|
@ -115,7 +115,8 @@ export default function GenericNode({
|
|||
<div
|
||||
className={classNames(
|
||||
selected ? "border border-ring" : "border",
|
||||
showNode ? "w-96" : "w-26 h-26 rounded-full",
|
||||
" transition-all ",
|
||||
showNode ? " w-96 duration-500 ease-in-out scale-100" : "transform-width w-26 h-26 rounded-full scale-50",
|
||||
"generic-node-div",
|
||||
)}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue