feat: change animation duration
This commit is contained in:
@@ -57,9 +57,9 @@ export function EntryColumn({
|
||||
{entries.data?.pages?.map((page, index) => (
|
||||
<m.div
|
||||
key={`${activedList?.level}-${activedList?.id}-${index}`}
|
||||
initial={{ opacity: 0.01, y: 50 }}
|
||||
initial={{ opacity: 0.01, y: 100 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
exit={{ opacity: 0.01, y: -50 }}
|
||||
exit={{ opacity: 0.01, y: -100 }}
|
||||
className={cn(
|
||||
activedList?.view &&
|
||||
gridMode.includes(activedList.view) &&
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Image } from "@renderer/components/ui/image"
|
||||
export function VideoItem({ entry }: { entry: EntriesResponse[number] }) {
|
||||
return (
|
||||
<div className="flex">
|
||||
<div>
|
||||
<div className="w-full">
|
||||
<div className="flex gap-2 overflow-x-auto">
|
||||
{
|
||||
<Image
|
||||
|
||||
@@ -17,9 +17,9 @@ export function EntryContent({ entry }: { entry: ActivedEntry }) {
|
||||
return (
|
||||
<m.div
|
||||
className="px-4 py-5 overflow-y-auto h-full"
|
||||
initial={{ opacity: 0.01, y: 50 }}
|
||||
initial={{ opacity: 0.01, y: 100 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
exit={{ opacity: 0.01, y: -50 }}
|
||||
exit={{ opacity: 0.01, y: -100 }}
|
||||
key={entry?.id}
|
||||
>
|
||||
<div>
|
||||
|
||||
@@ -67,7 +67,7 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<MotionConfig
|
||||
transition={{
|
||||
type: "tween",
|
||||
duration: 0.1,
|
||||
duration: 0.15,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user