Skip to content

Latest commit

 

History

History

intersection-observer

UiIntersectionObserver

A simple implementation of the intersectionObserverMixin.

Usage

import { UiIntersectionObserver } from '@dreipol/vue-ui'

Props

Name Type Default
thresholdMin number 0.1
thresholdMax number null

Events

  • intersect(isIntersecting: boolean, entry: IntersectionObserverEntry )
  • intersect-enter(entry: IntersectionObserverEntry )
  • intersect-leave(entry: IntersectionObserverEntry )

Example

<ui-intersection-observer @intersect-enter="onIntersectEnter">
        <div>
            Loading
        </div>
    </ui-intersection-observer>