Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

framer-motion -> motion

Blue Mousea773780ce47f
diff --git a/web/app/pages/Blog/ArticleNav.tsx b/web/app/pages/Blog/ArticleNav.tsx
index 5e2fb908e..a48dfbfb2 100644
--- a/web/app/pages/Blog/ArticleNav.tsx
+++ b/web/app/pages/Blog/ArticleNav.tsx
@@ -5,7 +5,7 @@ import {
Transition,
} from '@headlessui/react'
import { ArrowUpIcon, CaretUpIcon } from '@phosphor-icons/react'
-import { AnimatePresence, motion } from 'framer-motion'
+import { AnimatePresence, motion } from 'motion/react'
import { Fragment, RefObject, useCallback, useEffect, useState } from 'react'
import { Text } from '~/ui/Text'
diff --git a/web/app/pages/Onboarding/Onboarding.tsx b/web/app/pages/Onboarding/Onboarding.tsx
index 964530e65..dada8538e 100644
--- a/web/app/pages/Onboarding/Onboarding.tsx
+++ b/web/app/pages/Onboarding/Onboarding.tsx
@@ -1,4 +1,4 @@
-import { AnimatePresence, motion, useReducedMotion } from 'framer-motion'
+import { AnimatePresence, motion, useReducedMotion } from 'motion/react'
import _map from 'lodash/map'
import {
BugIcon,
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index 02b26dedb..27076f83f 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -1,6 +1,6 @@
import cx from 'clsx'
import dayjs from 'dayjs'
-import { AnimatePresence, motion } from 'framer-motion'
+import { AnimatePresence, motion } from 'motion/react'
import _filter from 'lodash/filter'
import _find from 'lodash/find'
import _includes from 'lodash/includes'
diff --git a/web/package-lock.json b/web/package-lock.json
index ff9d37218..e5e21dde2 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -26,7 +26,6 @@
"d3-scale": "^4.0.2",
"dayjs": "^1.11.21",
"fast-xml-parser": "^5.8.0",
- "framer-motion": "^12.40.0",
"i18n-iso-countries": "^7.14.0",
"i18next": "^26.3.1",
"i18next-browser-languagedetector": "^8.2.1",
@@ -37,6 +36,7 @@
"leaflet": "^1.9.4",
"lodash": "^4.18.1",
"marked": "^17.0.6",
+ "motion": "^12.40.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-hotkeys-hook": "^5.3.2",
@@ -8019,6 +8019,32 @@
"node": ">= 0.8"
}
},
+ "node_modules/motion": {
+ "version": "12.40.0",
+ "resolved": "https://registry.npmjs.org/motion/-/motion-12.40.0.tgz",
+ "integrity": "sha512-yjrHUrBFW6kQvjJwRsoiPSAhC5tRwRqNGJWmiJ4CrGnbKp0V88AdzkhBmDoqIsIPfarOe0Uddd37Xq43/gIocA==",
+ "license": "MIT",
+ "dependencies": {
+ "framer-motion": "^12.40.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/motion-dom": {
"version": "12.40.0",
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.40.0.tgz",
diff --git a/web/package.json b/web/package.json
index cdc3febc2..3893d129f 100644
--- a/web/package.json
+++ b/web/package.json
@@ -39,7 +39,7 @@
"d3-scale": "^4.0.2",
"dayjs": "^1.11.21",
"fast-xml-parser": "^5.8.0",
- "framer-motion": "^12.40.0",
+ "motion": "^12.40.0",
"i18n-iso-countries": "^7.14.0",
"i18next": "^26.3.1",
"i18next-browser-languagedetector": "^8.2.1",