framer-motion Questions

6

Solved

This error just started happening randomly: However if I make a wrapping component that spreads props and introduces children there's no error: const WorkingVersion = (props: {id?: number}) => ...
Sammie asked 10/4, 2022 at 13:36

2

Solved

I'm trying to make a page transition with Next.js v14 but no success. No error is shown, the animation just does't work. I guess it's because the layout.tsx is rendered on the server. But how can I...
Modred asked 5/12, 2023 at 0:32

2

Solved

So I´m currently refactoring a website, and so I do with the rrd, which was on v5 in the previous website version. Now, that the component doesn´t exist anymore we have to work with the new compone...
Bunt asked 9/4, 2022 at 12:26

4

Solved

I know that I can apply motion directly to element/HTMLtag like this: <motion.div>some content</div> But how can I apply it to this? <Comp /> Without wrapping it inside another ...
Ailyn asked 25/6, 2020 at 11:29

4

Solved

How can I animate a pure number from 0 to 100 with a transition config? <motion.div> {num} </motion.div>
Coronary asked 13/2, 2020 at 10:23

6

Solved

I am working on a React project where I have components animate in when they scroll in to view. I am using Framer Motion. How can I make it so the animation only triggers the first time you scroll ...
Chasten asked 9/9, 2020 at 18:49

19

Solved

When am trying to do simple animation for div using framer motion. Am getting this following error in browser /node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs Can't import t...
Herve asked 29/10, 2021 at 13:2

2

How do I use a Framer Motion tag, and in the animate and initial props, Apply a class. Like so. <motion.div initial={{ className: 'hidden' }} animate={{ className: 'visible' }} > <div&g...
Peeler asked 6/4, 2022 at 15:49

2

I thought on ever render framer motion would re-do my animation because the inital is set to hide and the animate is set to show. But this is not the case. How can I get this to re-play the animati...
Pocky asked 3/9, 2021 at 23:3

3

How to use tailwind css classes into framer motion objects.. const variant = { hidden: { 'w-0' }, visible: { width: 400, transition: { type: 'spring', stiffness: 170, damping:30, } } } ...
Cyruscyst asked 26/7, 2022 at 21:2

0

Pre Next v.13 (app dir) you could do something like: useEffect(() => { const handleRouteChangeComplete = () => { methodToCall() } // Add the event listener for 'routeChangeComplete' ro...
Parallax asked 26/7, 2023 at 17:50

2

Solved

Is there any built-in way to make the animation start when the element is in-view (for example, when we scroll to the element)? Framer Motion has mount animations section which says: When a com...
Koloski asked 20/11, 2019 at 16:22

3

Solved

Using framer motion I want to animate my Icon component to rotate 90 degrees when hovering at the parent element which is a button. <motion.button type="button" whileHover={{scale: 1.1}}&gt...
Lumbricalis asked 20/7, 2019 at 13:38

2

Solved

I'm using Framer Motion's useViewportScroll hook to track the user's scroll on my page, but it isn't updating. I came across this article, which explains how Framer Motion uses document.body.client...
Tubbs asked 9/1, 2021 at 21:45

5

Solved

I just want to know if there is a way to use framer-motion with Material-Ui. I tried but I am not getting it.
Helpless asked 11/12, 2020 at 12:43

1

How can I achieve a different type of transition for an exit property in Framer Motion? <motion.div initial={{opacity: 0, transform: 'scale(0.5)'}} animate={{opacity: 1, transform: 'scale(1)'}...
Cameo asked 23/8, 2021 at 14:29

3

Solved

I'm working with Framer-motion and i'm trying to find a way to delay the the animation of rotateY while the x animates to a specific position then start the rotateY. Is this possible in Framer mo...
Mote asked 24/3, 2020 at 5:4

1

I am making app with framer motion and I need to drag svg inside another svg but my problem is that viewbox size is not equal to window size so when I drag element my 1px movement of mouse on the s...
Hallux asked 15/11, 2022 at 19:38

3

Using Framer Motion's useTransform I want to change the width of an element using a MotionValue that is a percent (eg. 75%) rather than in pixels. The default assumes pixels: <motion.div class...
Murphree asked 4/5, 2020 at 21:28

0

I'm wondering if there is a way, and how can it be achieved, to pin an element in a gsap manner but with FRAMER MOTION. In order to do something just like that : https://codepen.io/hexagoncircle/pe...
Gizmo asked 9/11, 2022 at 10:57

5

Please see this codesandbox. I have a basic framer-motion animation where the height of a box is animated when toggled. However, I want the box to be shown by default, but when the page loads the i...
Piercy asked 20/5, 2021 at 19:28

1



I recently jumped the gun on upgrading to the latest react-router-dom and their fancy new Data APIs, and this essentially meant rewriting my app's routing logic using the new object-based routing...
Jook asked 7/11, 2022 at 18:19

1

Solved

React Router v6.4 has introduced a new routing API with createBrowserRouter and RouterProvider. In older versions of React Router, it was possible to wrap around the routes defined with React Route...
Sickle asked 25/10, 2022 at 7:43

1

Solved

I get this error on my next js app and I don't even know why or where its coming from since the code that's throwing the error is not even written by me. error - file:///Users/cheq/Desktop/cheqo/no...
Palila asked 20/10, 2022 at 21:59

3

Solved

I'm having some problems getting the framer motions "staggerChildren" transition to work on a simple list of items. It basically allows animations of child components to be staggered. I got my ani...
Lorna asked 25/5, 2020 at 17:23

© 2022 - 2025 — McMap. All rights reserved.