From 2985eaedf9cb79ea83e6e3f7e49846130c10742b Mon Sep 17 00:00:00 2001 From: Vrezh Fedora Date: Fri, 31 Jan 2025 10:38:21 +0100 Subject: [PATCH] remove framer-motion --- package-lock.json | 43 ------------------------------------- package.json | 1 - src/components/Hero.astro | 2 +- src/components/NavBar.astro | 2 +- 4 files changed, 2 insertions(+), 46 deletions(-) diff --git a/package-lock.json b/package-lock.json index 130c0e86..fc2af048 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,6 @@ "astro-navbar": "^2.3.7", "autoprefixer": "10.4.14", "date-fns": "^4.1.0", - "framer-motion": "^12.0.6", "free-astro-components": "^1.1.1", "lucide-astro": "^0.460.0", "lucide-react": "^0.474.0", @@ -5559,33 +5558,6 @@ "url": "https://github.com/sponsors/rawify" } }, - "node_modules/framer-motion": { - "version": "12.0.6", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.0.6.tgz", - "integrity": "sha512-LmrXbXF6Vv5WCNmb+O/zn891VPZrH7XbsZgRLBROw6kFiP+iTK49gxTv2Ur3F0Tbw6+sy9BVtSqnWfMUpH+6nA==", - "license": "MIT", - "dependencies": { - "motion-dom": "^12.0.0", - "motion-utils": "^12.0.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "@emotion/is-prop-valid": "*", - "react": "^18.0.0 || ^19.0.0", - "react-dom": "^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@emotion/is-prop-valid": { - "optional": true - }, - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - } - }, "node_modules/free-astro-components": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/free-astro-components/-/free-astro-components-1.1.1.tgz", @@ -7968,21 +7940,6 @@ } } }, - "node_modules/motion-dom": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.0.0.tgz", - "integrity": "sha512-CvYd15OeIR6kHgMdonCc1ihsaUG4MYh/wrkz8gZ3hBX/uamyZCXN9S9qJoYF03GqfTt7thTV/dxnHYX4+55vDg==", - "license": "MIT", - "dependencies": { - "motion-utils": "^12.0.0" - } - }, - "node_modules/motion-utils": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.0.0.tgz", - "integrity": "sha512-MNFiBKbbqnmvOjkPyOKgHUp3Q6oiokLkI1bEwm5QA28cxMZrv0CbbBGDNmhF6DIXsi1pCQBSs0dX8xjeER1tmA==", - "license": "MIT" - }, "node_modules/motion/node_modules/framer-motion": { "version": "11.18.2", "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.18.2.tgz", diff --git a/package.json b/package.json index 7a8f8cba..b748353b 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "astro-navbar": "^2.3.7", "autoprefixer": "10.4.14", "date-fns": "^4.1.0", - "framer-motion": "^12.0.6", "free-astro-components": "^1.1.1", "lucide-astro": "^0.460.0", "lucide-react": "^0.474.0", diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 97c29d36..3166285d 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -6,7 +6,7 @@ import { Image } from 'astro:assets' import myImage from '../assets/browsers.png' import myImageLight from '../assets/browsers-light.png' import { ArrowRight } from 'lucide-astro' -import { motion } from 'framer-motion' +import { motion } from 'motion/react' import { getTitleAnimation } from '../animations' export function splitTextIntoWords(text: string) { diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro index bad972a6..14a8f1a2 100644 --- a/src/components/NavBar.astro +++ b/src/components/NavBar.astro @@ -1,5 +1,5 @@ --- -import { motion } from 'framer-motion' +import { motion } from 'motion/react' import Title from '../components/Title.astro' import Description from '../components/Description.astro' import Button from '../components/Button.astro'