Skip to content

Commit

Permalink
refactor: update to frame motion12
Browse files Browse the repository at this point in the history
  • Loading branch information
valcosmos committed Oct 24, 2024
1 parent 942d6ca commit 7fe31fb
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 359 deletions.
2 changes: 0 additions & 2 deletions components/BackgroundWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ export default function BackgroundWrapper({ children }: { children: React.ReactN
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 3, ease: 'easeInOut' }}
// eslint-disable-next-line ts/ban-ts-comment
// @ts-expect-error
className="!absolute inset-0"
>
<Circle />
Expand Down
2 changes: 0 additions & 2 deletions components/Cursor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export default function Cursor() {

return (
<motion.div
// eslint-disable-next-line ts/ban-ts-comment
// @ts-expect-error
className="fixed z-[999] size-12 rounded-full border border-black dark:border-white"
animate={{ x: position.x + 10, y: position.y + 10 }}
>
Expand Down
2 changes: 0 additions & 2 deletions components/Reveal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ interface RevealProps {
export default function Reveal({ children, width = '100%' }: RevealProps) {
const ref = useRef(null)

// eslint-disable-next-line ts/ban-ts-comment
// @ts-expect-error
const isInView = useInView(ref, { once: true })

const mainControls = useAnimation()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"body-scroll-lock": "^4.0.0-beta.0",
"contentlayer2": "0.5.1",
"esbuild": "0.24.0",
"framer-motion": "^11.11.9",
"framer-motion": "12.0.0-alpha.1",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
"hast-util-from-html-isomorphic": "^2.0.0",
Expand Down
Loading

0 comments on commit 7fe31fb

Please sign in to comment.