mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
refactor: update SidebarSlideOutPanel animation to use width instead of x for smoother transitions
This commit is contained in:
parent
a335f7621a
commit
abd883458d
1 changed files with 4 additions and 4 deletions
|
|
@ -91,12 +91,12 @@ export function SidebarSlideOutPanel({
|
||||||
|
|
||||||
{/* Panel extending from sidebar's right edge, flush with the wrapper border */}
|
{/* Panel extending from sidebar's right edge, flush with the wrapper border */}
|
||||||
<motion.div
|
<motion.div
|
||||||
style={{ width, left: "100%", top: -1, bottom: -1 }}
|
initial={{ width: 0 }}
|
||||||
initial={{ x: -width }}
|
animate={{ width }}
|
||||||
animate={{ x: 0 }}
|
exit={{ width: 0 }}
|
||||||
exit={{ x: -width }}
|
|
||||||
transition={{ type: "tween", duration: 0.2, ease: [0.4, 0, 0.2, 1] }}
|
transition={{ type: "tween", duration: 0.2, ease: [0.4, 0, 0.2, 1] }}
|
||||||
className="absolute z-20 overflow-hidden"
|
className="absolute z-20 overflow-hidden"
|
||||||
|
style={{ left: "100%", top: -1, bottom: -1 }}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={{ width }}
|
style={{ width }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue