pmndrs / pmndrs/react-spring

[feat]: Move to keyframe

Open
#2,109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

template: request
Dominant language
TypeScript
Stars
29.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

A clear and concise description of what the feature is
import { Component, createRef } from 'react'
import { Controller, animated } from '@react-spring/web'

class AnimatedComponent extends Component {
  isShowing = createRef(false)
  animations = new Controller({ opacity: 0 })


  render() {
    return (
      <>
        <animated.div style={this.animations.springs}>I will fade</animated.div>
      </>
    )
  }
}

if i want div to animate to 50% of the whole animation
i could just call some function like animation.moveTo(0.5) or animation.moveTo('50%')

Why should this feature be included?

A lot of animations will become handy

Please provide an example for how this would work

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Controller and animated usage shown in the issue, then inspect the existing animation API and related tests in the repository. Clarify the intended moveTo behavior, supported position format, and completion criteria before identifying the implementation and test locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.