Hanko
Do various things at the scroll position.
Install or Download
yarn add hankonpm i -S hanko
Or access to releases page. Then, download the latest version.
Usage
<!-- Target the following `.target` -->...... <!-- The element after init () becomes like this --> <!-- When entering the territory of elements, it becomes --> <!-- Just before becoming active, a class of `hanko-entry` is attached only for a moment, if there is a `transition`, `hanko-entry` is followed by a class of `hanko-entry-to` will be attached only during `transition-duration`.--> <!-- Just before becoming deactivated, classes `hanko-leave` and `hanko-leave-to` are attached.--> <!-- You can adjust the position of the entry and have the following. - top / When the element is at the top of the screen - center / When the element is in the center of the screen - bottom / When the element is at the bottom of the screen - css-value / 2em,10px,etc / Expand the territory by the value specified above the element--><!-- default:'top' -->Heading 2 <!-- When reading by itself -->
; window;
Example
test/fixtures/
example/webpack/
LICENSE
The MIT License (MIT)
Copyright (c) 2017 nju33 nju33.ki@gmail.com