Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React count up on scroll

<CountUp start={0} end={4.8} duration={2} decimals={1}>
    {({ countUpRef, start }) => (
        <VisibilitySensor onChange={start}>
            <span ref={countUpRef} />
        </VisibilitySensor>
    )}
 </CountUp>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #React #count #scroll
ADD COMMENT
Topic
Name
2+4 =