@arturdoruch/ui
v1.0.3
Published
A set of functions adding user interface events to the HTML elements.
Downloads
6
Readme
User interface
A set of functions adding user interface events to the HTML elements.
Install
yarn add @arturdoruch/ui
Contents
Content events
import contentEvents from '@arturdoruch/ui/lib/content-events.js';
Functions
- slide() - Adds sliding content event.
- openInBrowser() - Adds event opening text content (e.g. HTML or JSON) of the HTML element in a new browser tab.
Scroll events
import scrollEvents from '@arturdoruch/ui/lib/scroll-events.js';
Functions
- pageToTop() - Adds event of scrolling page to the top.
Page scroll dispatcher
Scrolling page event dispatcher.
import pageScrollDispatcher from '@arturdoruch/ui/lib/page-scroll-dispatcher.js';