JSPM

  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q81270F
  • License MIT

Package Exports

  • be-intersectional
  • be-intersectional/be-intersectional.js

Readme

be-intersectional

Use Case I

Instantiate template when viewable.

Syntax

<template be-intersectional>
    <div>I am here</div>
</template>

Specify options:

<template be-intersectional='{ "options":{ "threshold": 0.5, "rootMargin": "0px 0px -100px 0px" }

}'>

I am here

Use Case II [TODO]

Add class when viewable

<div be-intersectional=my-class>
</div>