perf: remove framer-motion filter blur animations to fix main thread blocking, compress heavy images
This commit is contained in:
@@ -5,8 +5,8 @@ import { m } from 'framer-motion';
|
||||
export default function Template({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<m.div
|
||||
initial={{ opacity: 0, y: 20, filter: 'blur(10px)' }}
|
||||
animate={{ opacity: 1, y: 0, filter: 'blur(0px)' }}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
duration: 0.7,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
|
||||
Reference in New Issue
Block a user