Questions tagged [react-spring]

react-spring is a set of simple building blocks that should cover most of UI related animation needs in a react application.

React-spring is a library which supports different types of animation. It is used to create different types of 2d, 3d shapes and has lot of animation effects which would otherwise take a lot of css styles to implement.

For more info check the below link:

React Spring Github

437 questions
0
votes
1 answer

trying to render a button for a portal in react and get this error: × TypeError: Object(...) is not a function on the modalwrapper style

I created a portal to display a message. come compile time i get an error on the ModalWrapper and cannot figure it out. all technologies are installed and up to date. ive imported and exported differently just can seem to figure out. import React, {…
0
votes
2 answers

React-spring transition throws 126:20-30 'react-spring' does not contain an export named 'Transition'

Following a tutorial and code looks identical but still getting err: "126:20-30 'react-spring' does not contain an export named 'Transition'."... ive read the docs for react spring to get the transition effect and have changed the import tried to…
0
votes
1 answer

What is the simplest way to animate `React.Component` with `react-spring` when prop is updated

How to animate React Component with react-spring library depend on props updating I found this https://codesandbox.io/s/xpqq0ll5nw and want to implement the same with hooks const Counter = ({quantity}) => { const animation = useSpring({ …
sliim35
  • 25
  • 4
0
votes
0 answers

Animation react spring (With hooks vs Render Props)

I was just trying to move between react spring render props to hooks based approach. For most of the cases the solution was pretty simple as the values I had to use were directly animatable I'd say. In one particular case I had to animate a map…
Varun Sharma
  • 253
  • 1
  • 3
  • 16
0
votes
1 answer

How does react spring render natively?

react spring comes with an animated function that allows components to be modified natively without having to re-render the component. I found that animated components have a couple of methods that are similar to react native's animated components.…
cubefox
  • 1,251
  • 14
  • 29
0
votes
1 answer

component snapping effect when animation transitions out in react-spring?

I am trying to have an animation every time the picture component gets changed. The first animation when the page loads , is fine. When I click the '+' button , the animation kind of snaps back to its final position in a jerk and is not smooth. I…
Natesh bhat
  • 12,274
  • 10
  • 84
  • 125
0
votes
0 answers

How to define backgroundImageUrl on React/GatsbyJs

I have a website project with a parallax component on a page component. I am trying to bind an graphql image query response to background-image url style attribute but could not figure out how to write it. Here is my code: import React from…
Ergun
  • 458
  • 1
  • 8
  • 21
0
votes
1 answer

how to animate text when it updates using react-spring?

in a react.js App, i have some simple text stored in the App state , and passed to a child component who will display it directly . i want to animate the transition so that when it changes , the previous text will fade out and then the incoming…
soufiane yakoubi
  • 861
  • 11
  • 31
0
votes
1 answer

Is there a way to fake a loop animation in React JS within the following context?

I am new to React and learning how to animate styles. I have created the following animation that moves the element down 50px when the page renders. The props from, to, and config are part of the react-spring library. import React, { Component }…
LarryYoung
  • 25
  • 7
0
votes
0 answers

basic example react-spring

I trying to implement basic example of react-spring animation but Typescript and also console after compilation throws a lot of errors I took on the background this example: import { Spring } from 'react-spring'
Dominik
  • 37
  • 1
  • 1
  • 9
0
votes
2 answers

How to show Vertical Progress Bar in react-transition-group with animation

Here is a jQuery example for a progress bar animation. and I want this feature in Reactjs without jQuery. How to implement this feature.
Arpit
  • 1,423
  • 1
  • 17
  • 20
0
votes
0 answers

How to override or nullify Container's CSS padding in React apps

I need help with CSS in my react-redux app where I'm also using styled-components and react-spring to add animations to my app I have my the whole container with padding and I need to add images which should go in the background like shown in this…
Divyesh Parmar
  • 321
  • 1
  • 6
  • 15
0
votes
1 answer

How to Implement Pause and Resume feature using Transition of react-spring?

we have requirement for showing the transition in react and on mouse hover we have to stop the transition and when we move out the mouse it should resume? We are able to show the transition but unable to implement pause and resume feature. Any…
Aman2211
  • 23
  • 3
0
votes
1 answer

How to implement a design with react-spring?

In the project's repo the react-redux app is set with CSS in JS files. Now I'm supposed to animate pictures with mouse hover just like this website : https://www.madwell.com/ The component was initially a functional component and I have changed that…
Divyesh Parmar
  • 321
  • 1
  • 6
  • 15
0
votes
1 answer

react-spring Animating a switch case

Been busting my head against this for a week now. I'm using react-spring to create a transition animation between pages. Those pages are defined by a switch case that is called within the render of a React Component. I made a quick oversimplifeid…
1 2 3
29
30