We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any way to make icons fall straight down instead of moving side to side?
The text was updated successfully, but these errors were encountered:
Try setting the prop horizSpeed={0}
horizSpeed={0}
Sorry, something went wrong.
Doesn't seem to be working. Looking at the source code, it looks like these functions are what govern the side-to-side behavior:
`const spring = (dt, position, velocity, anchor, tension = 50, mass = 1) => { const dist = sub(position, anchor); const acc = divide(multiply(-1, tension, dist), mass); return set(velocity, add(velocity, multiply(dt, acc))); };
const swingArc = (x, y, xArc, yBase, anchor) => { const percentArc = divide(abs(sub(x, anchor)), xArc); const yOffset = multiply(percentArc, divide(xArc, 4)); return set(y, sub(yBase, yOffset)); };`
Would you be mind if I PR'd a third option that doesn't have the swinging?
No branches or pull requests
Any way to make icons fall straight down instead of moving side to side?
The text was updated successfully, but these errors were encountered: