@lemehovskiy/is-on-screen
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

is-on-screen

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.

Package Sidebar

Install

npm i @lemehovskiy/is-on-screen

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.99 kB

Total Files

6

Last publish

Collaborators

  • lemehovskiy