diff --git a/src/App.jsx b/src/App.jsx index f00ca46..76f3971 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -90,12 +90,15 @@ event.on("set-api-accessToken", (serverAddress) => { const anim = { initial: { + transform: "scale(0.99)", opacity: 0, }, animate: { + transform: "scale(1)", opacity: 1, }, exit: { + transform: "scale(0.99)", opacity: 0, }, }; diff --git a/src/routes/item/index.jsx b/src/routes/item/index.jsx index 327d7a9..5a3ed01 100644 --- a/src/routes/item/index.jsx +++ b/src/routes/item/index.jsx @@ -26,7 +26,7 @@ import MenuItem from "@mui/material/MenuItem"; import Link from "@mui/material/Link"; import { green, pink, yellow } from "@mui/material/colors"; -import { AnimatePresence, motion } from "framer-motion"; +import { motion } from "framer-motion"; import { Blurhash } from "react-blurhash"; import { useDispatch, useSelector } from "react-redux"; @@ -2243,10 +2243,28 @@ const ItemDetail = () => { (mitem, mindex) => { return ( { {items.data.Items.map((item, index) => { return ( { {items.data.Items.map((item, index) => { return ( { "rgb(255 255 255 / 0.05)", }, }} + initial={{ + scale: 0.8, + opacity: 0, + }} + animate={{ + scale: 1, + opacity: 1, + }} + transition={{ + duration: 0.25, + ease: "easeInOut", + delay: 0.02 * index, + }} >