@arturdoruch/ui

A set of functions adding user interface events to the HTML elements.

Usage no npm install needed!

<script type="module">
  import arturdoruchUi from 'https://cdn.skypack.dev/@arturdoruch/ui';
</script>

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';