chenglou / chenglou/react-motion

Recommended way for applying forces?

Open
#60 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Is there a a good way to apply forces to a system? A use case is when you drag an element on a touch device and release it with a specific velocity. You want the element to being thrown into that direction.

Additionally an element could have another force that is being applied on it, so that it will eventually move to a specific end position.

Compare for example the [photo gallery](http://petehunt.github.io/react-touch/#/viewer) of the react-touch demo of Pete Hunt. When you flick with a higher velocity, multiple photos can be navigated at once.

Is there a recommended way for doing this with react-motion?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the react-motion API and comparing the linked react-touch photo-gallery demo, especially its flick and navigation behavior. The issue names no source files or tests; done would require an agreed, documented recommendation for applying release velocity and additional forces.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
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.