Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
org.webjars.bowergithub.mlunnay:alicorn-scroll-watcher
Advanced tools
WebJar for alicorn-scroll-watcher
alicorn-scroll-watcher provides a mixin and custom element that generate events based on its position inside the parent document, or a specified target element. For performance it uses requestAnimationFrame, over scroll events.
bower install alicorn-scroll-watcher --save
npm install alicorn-scroll-watcher
yarn add alicorn-scroll-watcher
<link rel="import" href="../../alicorn-scroll-watcher/alicorn-scroll-watcher.html">
The alicorn-scroll-watcher element fires events for when it enters or exits the target viewport.
This fires when any of the other events fire.
This fires when any part of the element enters the target viewport.
This fires when all of the element is fully inside the target viewport.
This fires when all of the element has exited the target viewport.
This fires when any part of the element has exited the target viewport.
A mixin class AlicornScrollWatcherMixin can be extended by custom elements. The _scrollHandler
method is called whenever the target viewport changed and can be overridden to add scroll logic.
<link rel="import" href="../../alicorn-scroll-watcher/alicorn-scroll-watcher-mixin.html">
<style>
class MyElement extends AlicornScrollWatcherMixin(PolymerElement) {
//...
_scrollHandler() {
//...
}
}
</style>
v1.0.0 Initial version
MIT License © Michael Lunnay
FAQs
WebJar for alicorn-scroll-watcher
We found that org.webjars.bowergithub.mlunnay:alicorn-scroll-watcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.