1.0.1 • Published 5 years ago
onscreensensor v1.0.1
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
🚀 Getting Started
- Install the node modules.
Intall via yarn / npm , your preference
yarn add onscreensensor
- Usage.
import OnScreenSensor from 'onscreensensor'
const Example () => {
return(
<OnScreenSensor onChange={isVisible => console.log(`Visibility : ${isVisible}`)}>
<div>Hello , Am i visible?</div>
</OnScreenSensor>
)
}