Skip to content

Commit

Permalink
refactor: replace framer-motion to motion
Browse files Browse the repository at this point in the history
  • Loading branch information
valcosmos committed Nov 28, 2024
1 parent 73d803f commit 66a6662
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/Cursor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { motion } from 'framer-motion'
import { motion } from 'motion/react'
import React, { useEffect, useState } from 'react'

export default function Cursor() {
Expand Down
2 changes: 1 addition & 1 deletion components/Reveal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import type { ReactNode } from 'react'
import { motion, useAnimation, useInView } from 'framer-motion'
import { motion, useAnimation, useInView } from 'motion/react'
import React, { useEffect, useRef } from 'react'

interface RevealProps {
Expand Down
2 changes: 1 addition & 1 deletion components/Ring/Ring.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { Canvas } from '@react-three/offscreen'
import { motion } from 'framer-motion'
import { motion } from 'motion/react'
import React, { lazy, useEffect, useState } from 'react'

const PointCircle = lazy(() => import('./PointCircle'))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"body-scroll-lock": "^4.0.0-beta.0",
"contentlayer2": "0.5.3",
"esbuild": "0.24.0",
"framer-motion": "^11.11.11",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
"hast-util-from-html-isomorphic": "^2.0.0",
"image-size": "1.1.1",
"motion": "^11.12.0",
"next": "14.2.15",
"next-contentlayer2": "0.5.3",
"next-themes": "^0.3.0",
Expand Down
35 changes: 29 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 66a6662

Please sign in to comment.