0.0.1 • Published 5 months ago

@lemehovskiy/is-on-screen v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Status GitHub Issues GitHub Pull Requests License


🧐 About

VanillaJS plugin for detecting if an element is on the screen.

Features:

  • Built with IntersectionObserver
  • Allows you to define from which side the element enters or leaves
  • Allows you to define the limit of enters or leaves
  • Defines a threshold for the percentage of the target's visibility

🏁 Getting Started

Installing

npm i @lemehovskiy/is-on-screen

Contributing

If you'd like to get involved, please consider opening an issue or submitting a pull request. Your input is highly valued, and I'm enthusiastic about collaborating to enhance this tool.

License

is-on-screen is released under the MIT License. See the LICENSE file for comprehensive details regarding the terms and conditions of use.