1.0.1 • Published 5 years ago

onscreensensor v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

This project was created and implemented by Thiti Mahawannakit

🎓 React-OnScreenSensor

A React Library which provides the ability whether to check if the wrapped elements are being shown or not , most likely benifit in the use of Triggering Animation

✨ Features

  • Allowed multiple children inside
  • Using reference over timestamp PATCHED
  • Callback optional PATCHED

🚀 Getting Started

  1. Install the node modules.

Intall via yarn / npm , your preference

yarn add onscreensensor
  1. Usage.
import OnScreenSensor from 'onscreensensor'
const Example () => {
    return(
        <OnScreenSensor onChange={isVisible => console.log(`Visibility : ${isVisible}`)}>
            <div>Hello , Am i visible?</div>
        </OnScreenSensor>
    )
}
1.0.1

5 years ago

1.0.0

5 years ago