mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-17 16:29:19 +00:00
🎨 style: remove bouncing animation
This commit is contained in:
parent
ced50bf7f2
commit
a80d40156f
@ -71,7 +71,7 @@ export const Sidebar = ({ mobileOpen }: SidebarProps) => {
|
||||
initial={{ x: -320 }}
|
||||
animate={{ x: isDesktop || mobileOpen ? 0 : -320 }}
|
||||
exit={{ x: -320 }}
|
||||
transition={{ type: 'spring', stiffness: 260, damping: 20 }}
|
||||
transition={{ ease: 'easeInOut', duration: 0.3 }}
|
||||
className={cn('h-full flex-none w-[320px] lg:flex hidden flex-col', {
|
||||
flex: mobileOpen,
|
||||
})}
|
||||
|
@ -111,7 +111,7 @@ export const DashboardLayout = ({
|
||||
animate={{
|
||||
x: isSidebarOpen ? '10px' : 0, // Translate X based on sidebar state
|
||||
}}
|
||||
transition={{ type: 'spring', stiffness: 260, damping: 20 }}
|
||||
transition={{ ease: 'easeInOut', duration: 0.3 }}
|
||||
>
|
||||
<motion.div
|
||||
className="rounded-3xl bg-base-bg h-full shadow-card overflow-y-auto relative"
|
||||
@ -119,7 +119,7 @@ export const DashboardLayout = ({
|
||||
animate={{ opacity: 1, x: isSidebarOpen ? '10px' : 0 }}
|
||||
exit={{ opacity: 0, x: 100 }}
|
||||
// transition={{ duration: 0.5 }}
|
||||
transition={{ type: 'spring', stiffness: 260, damping: 20 }}
|
||||
transition={{ ease: 'easeInOut', duration: 0.3 }}
|
||||
>
|
||||
<OctokitProvider>
|
||||
<Outlet />
|
||||
|
Loading…
Reference in New Issue
Block a user