fire-here

Simple component to execute commands when scrolling the page to the location of the component

Usage no npm install needed!

<script type="module">
  import fireHere from 'https://cdn.skypack.dev/fire-here';
</script>

README

About FireHere component

Simple component to execute commands when scrolling the page to the location of the component

Step 1

Use the npm i fire-here to install

Step 2

import {FireHere} from 'fire-here'

Step 3

To use it you need to write inside JSX
<FireHere id='etc' onHereFn={doShomthingFunction} />

  • id : Unique ID value must be assigned to each component
  • onHereFn : Function or executable code

Live Demo

View a live sample in the codesandbox