@@ -360,7 +360,14 @@ export const DocsNav = ({
360360 </ svg >
361361 </ div >
362362 < div
363- className = { classnames ( 'ml-6' , { hidden : ! active . getDocs } ) }
363+ className = { classnames (
364+ 'ml-6' ,
365+ 'transition-all duration-500 ease-in-out' ,
366+ {
367+ 'max-h-0 opacity-0 overflow-hidden' : ! active . getDocs ,
368+ 'max-h-80 opacity-100' : active . getDocs ,
369+ } ,
370+ ) }
364371 id = 'overview'
365372 >
366373 < DocLink
@@ -442,7 +449,14 @@ export const DocsNav = ({
442449 </ svg >
443450 </ div >
444451 < div
445- className = { classnames ( 'ml-6' , { hidden : ! active . getStarted } ) }
452+ className = { classnames (
453+ 'ml-6' ,
454+ 'transition-all duration-500 ease-in-out' ,
455+ {
456+ 'max-h-0 opacity-0 overflow-hidden' : ! active . getStarted ,
457+ 'max-h-80 opacity-100' : active . getStarted ,
458+ } ,
459+ ) }
446460 id = 'getStarted'
447461 >
448462 < DocLink uri = '/learn' label = 'Overview' setOpen = { setOpen } />
@@ -515,7 +529,14 @@ export const DocsNav = ({
515529 </ svg >
516530 </ div >
517531 < div
518- className = { classnames ( 'ml-6' , { hidden : ! active . getReference } ) }
532+ className = { classnames (
533+ 'ml-6' ,
534+ 'transition-all duration-500 ease-in-out' ,
535+ {
536+ 'max-h-0 opacity-0 overflow-hidden' : ! active . getReference ,
537+ 'max-h-80 overflow-y-auto opacity-100' : active . getReference ,
538+ } ,
539+ ) }
519540 id = 'reference'
520541 >
521542 < DocLink
@@ -710,7 +731,14 @@ export const DocsNav = ({
710731 </ svg >
711732 </ div >
712733 < div
713- className = { classnames ( 'ml-6' , { hidden : ! active . getSpecification } ) }
734+ className = { classnames (
735+ 'ml-6' ,
736+ 'transition-all duration-500 ease-in-out' ,
737+ {
738+ 'max-h-0 opacity-0 overflow-hidden' : ! active . getSpecification ,
739+ 'max-h-80 opacity-100' : active . getSpecification ,
740+ } ,
741+ ) }
714742 id = 'specification'
715743 >
716744 < DocLink uri = '/specification' label = 'Overview' setOpen = { setOpen } />
0 commit comments