All Questions
Tagged with framer-motion next.js
220
questions
0
votes
1
answer
31
views
How to animate class changes with framer-motion
I have a function that changes the isOpen state when the user scrolls the mouse wheel, I need to make content that is initially behind the right side of the screen and looks out a little from there, ...
0
votes
0
answers
29
views
useInView not working even though the element is in the view
I've been having a problem where I'm unable to animate because useInView() isn't working, and isHeadingInView is remaining false. The h1 element is clearly in view. This is my code:
const Page = () =&...
0
votes
2
answers
50
views
framer-motion gesture animation
i would like to create a framer motion animation in React that removes and element on click and visualizes another element.
Here is an example
example
This is my code:
{!tileOpen ? (
...
1
vote
1
answer
57
views
Why is framer-motion nested motion not working?
I have a problem with nested motion, outer motion.div is working, but this nested with layout id is not. I noticed that the internal motion.div works when I remove the external motion from this div. ...
0
votes
1
answer
20
views
Stagger Children with framer-motion where the child is a custom component
I am trying to create a mobile menu where the nav items fade in one at a time. I've dug around but can't seem to find what I'm doing wrong here. Instead of staggering each NavLink item, they all load ...
2
votes
1
answer
55
views
Next.js 14: Framer Motion useScroll with element container not updating
I'm using Next.js v14.2.5 and Framer Motion v11.3.21. I'm working on a card carousel that scrolls horizontally. To track the scrolling progress, I'm using the useScroll hook from Framer Motion. ...
-1
votes
0
answers
34
views
NextJS not rendering Hero component on full screen
I am creating a static site with NextJS (seems too much just for a static site I know but I might have to expand this in the future). Anyways, right now I am keeping it simple with a few animations. ...
0
votes
0
answers
15
views
AnimatePresence Framer Motion with NextJS and Storyblok
export default function MyApp({ Component, pageProps, router }){
const [ isLoading, setIsLoading ] = useState(true)
useEffect(() => {
if(isLoading === true) {
document.querySelector(&...
0
votes
0
answers
31
views
Framer motion animation flickers when animating
When the animation completes it flow, it flickers once. So when it fades from the left it flickers and when it leaves it flickers
import { motion, useInView } from "framer-motion";
import { ...
0
votes
0
answers
12
views
Implementing Cube In and Cube Out Effect with Framer Motion in React
I'm working on a React project where I want to implement a cube in and cube out effect on a component transition. Currently, I have a Person component displayed from a list of people.
Each Person ...
0
votes
0
answers
18
views
Framer Motion beaks the website in localhost after uptating content
I'm building the website using Next.js, Tailwind and adding simple animations to sections and text with Framer Motion. However, I'm experiencing an issue that slows down my development. When I run my ...
1
vote
1
answer
109
views
Framer-motion element appears multiple times
What am I trying to do & context?
I am currently making a personal website, and I wanted center this container. You can an example on Aceternity.
With a modified version this container centered, ...
0
votes
0
answers
39
views
Framer Motion whileHover animation resets on click
I am animating two elements, which are visually on top of each other.
a text div, that onClick toggles to display a paragraph
a "book cover" div, that covers the text div until you hover ...
0
votes
0
answers
44
views
How to create a seamless infinite loop for parallax images with framer motion in React?
I have created a ParallaxText with Framer-motion in which images move. This is the code for it:
import { useRef } from "react";
import {
motion,
useScroll,
useSpring,
useTransform,
...
0
votes
0
answers
53
views
Framer motion Reorder component issue with react state of an array of objects
i have a state that gets an array of objects
each object is in this form
{
unnacurate: false,
useless: false,
other: false,
otherValue: '',
...