glennreyes / glennreyes/react-countup

enableScrollSpy bugged

Open
#699 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
138
PR merge metrics
No merged PRs in 30d

Description

Count animation is triggered on initial page render, even if the component is not visible. Animation is already done when you finally reach the component with scroll.
Reset works only when you scroll from bottom to CountUp component. From top to CountUp is bugged

Bug:
https://gyazo.com/0d2704722ce5c7cb3eceeec8449e9414

Expected behaviour:
https://gyazo.com/1f0da454857333ea4e5eff1eb810cdb4

Sandbox with bug:
https://codesandbox.io/s/icy-sound-i2cov2?file=/src/App.js

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.