mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
added animation for home page
This commit is contained in:
1 parent
531c70e13a
commit
1800fa7ceb
15 files changed
+1289
-249
No files matched your search
@@ -1,8 +1,13 @@
|
||||
import { motion } from 'motion/react'
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
// motion v14 has motion.config for reducedMotion but TS types don't expose it
|
||||
const motionWithConfig = motion as any
|
||||
motionWithConfig.config.reducedMotion = 'user'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
|
||||
Reference in new issue
Block a user