Skip to main content

All Questions

Tagged with
0 votes
1 answer
30 views

Setting the initial frame on Lottie animation based on the theme from localStorage in React

I have a React component that implements a dark mode toggle using the following Lottie animation: https://lottiefiles.com/free-animation/button-switch-ui-AX5XJZQdq8 The animation has different frames ...
jacobadam's user avatar
0 votes
0 answers
15 views

Snap drag to center on motion react

I'm relatively new to motion, and I'm making this carousel that you scroll on drag. However the only issue is that the elements don't snap at the center when I drag. Here's the code import { useRef } ...
TeDi's user avatar
  • 47
0 votes
0 answers
41 views

useMotionValueEvent not working on motion react

I just discovered motion for react (previously framer motion) and I just started learning it. I've gotten a hold of the basic syntax from the docs to make some simple animations. I'm working with ...
TeDi's user avatar
  • 47
0 votes
0 answers
36 views

How to Recreate the "ENTER LENIS" Animation from Lenis Website?

How to Recreate the "ENTER LENIS" Animation from Lenis Website? I'm trying to replicate the "ENTER LENIS" animation from the Lenis website, but I haven't been able to achieve the ...
Oussama Alouche's user avatar
0 votes
0 answers
12 views

iFrame with an animation in a Next.JS app

I am having a little problem in a web app of mine. And I am hoping someone could give me some relevant advice to solve it. It has to do with an animation running in an iframe. When run in the browser ...
Michel's user avatar
  • 11.8k
0 votes
0 answers
32 views

How to Make a Scroll-Based Framer Motion Animation Work Across All Desktop Resolutions?

I have a scroll-based animation in a React component using Framer Motion. It animates a set of cards (motion.div) as the user scrolls down. However, the issue I'm facing is that on certain desktop ...
Random Person's user avatar
0 votes
0 answers
17 views

useSpring only triggers when code is changed

I am trying to animate a number from 0 to a desired number. This is what I got. import React from 'react' import { animated, useSpring } from "react-spring" function AnimateNumber({endNum}) ...
Wen Zhe's user avatar
  • 31
0 votes
1 answer
45 views

How to move elements beneath downwards when expanding a div in React?

I am making a 'Team' section for a website, and I have a div containing 4 cards arranged horizontally in a row; each card has a team member's image, name, role, and a 'Read Bio' button. When a 'Read ...
user24889088's user avatar
0 votes
0 answers
34 views

useScroll + useSpring = refresh issue with React Motion

When using useScroll and useSpring in Motion. If you have some scroll progress then, on page refresh : The animation restarts and animate progressively to match scroll value, instead of directly be on ...
Rémi Girard's user avatar
1 vote
0 answers
27 views

SplitText + Gradient in React not working

I'm facing an issue where the gradient I'm trying to apply to the split text is only affecting the individual letters, rather than the whole word. I've tried several different approaches, such as ...
Bolas's user avatar
  • 11
1 vote
0 answers
184 views

How to animate slide transitions with framer motion

I am trying to implement a slide transition between books. I've tried Motion, but I am getting weird animations. All I am looking for is to slide each book across the x axis when ever they are being ...
Tyler Morales's user avatar
1 vote
0 answers
53 views

Horizontal Stack effect while scrolling vertically with css, js

I have been trying to acheive this effect but, have failed to do so. Effect: https://imgur.com/a/dBvwa3e Can anyone help me out? This is as much as I have been able to achieve: Tried Approach: I have ...
Owl0223's user avatar
  • 11
0 votes
0 answers
37 views

How to implement 3d hover effect on text in react

How can I implement this effect in react native, check image for better understanding I want to build a hover effect on text that when I hover on a text it goes in a 3d like effect in react js as in ...
Shahroz Atiq's user avatar
2 votes
0 answers
67 views

React + GSAP Text Animation Stutters on Initial Page Load but Works Fine on Hot Reload

I'm experiencing a strange issue with GSAP text animations in my React component. The animation stutters/gets stuck during initial page load or refresh on all devices, but works perfectly during hot ...
Tauseef Razaq's user avatar
1 vote
1 answer
113 views

Trigger animation when another starts in motion

I am using motion to animate a background color whenever the variable colorHex changes, which works nicely. I would also like to scale up and back down each time the color changes. For this I've used ...
Undistraction's user avatar

15 30 50 per page
1
2 3 4 5
75