Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resize-sensor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resize-sensor

Element Sensor is a purely event based element size changing detector, which means intermitten checking free.

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Element Sensor

Element Sensor detects html element size change by constructing subtle html structure inside target element, so that it indirectly triggers scroll event when resized.

The latest version also compatible with older browesrs by checking intermittently.

Element Sensor is stolen from Marc J. Schmidt's Element Queries component, I refactored the code to make it consume less memory and be slightly faster by reduce the number of function instances. Also by separate it from the original repo, it will be much easier to be reused.

Usage

new ResizeSensor(targetElement, callback)

License

MIT license. Copyright Marc J. Schmidt.

FAQs

Package last updated on 03 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc