0.5.1 • Published 1 year ago

gx-intersection-observer v0.5.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

gx-intersection-observer

This control allows the user to wrap another component and use the Javascript Intersection Observer API on it. The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.

Children

The different building blocks of the card can be specified using a set of predefined slots:

SlotDetails
contentThis slot will be rendered as content inside the intersection observer.

Example

<gx-intersection-observer>
  <div slot="content">
    Some information
  </div>
</gx-intersection-observer>

Properties

PropertyAttributeDescriptionTypeDefault
cssClasscss-classA CSS class to set for thegx-intersection-observerstring
rootrootSet the ID of the component that is used as the viewport, default is the browser.stringnull
topRootMargintop-root-marginTop margin around the rootstring"0px"
leftRootMarginleft-root-marginLeft margin around the rootstring"0px"
bottomRootMarginbottom-root-marginBottom margin around the rootstring"0px"
rightRootMarginright-root-marginRight margin around the rootstring"0px"
intersectionRatiointersection-ratioThe degree of intersection between the target element and its root, its a read-only property that change its value when the IntersectionUpdate event its triggered. Default value is zero.number0
thresholdthresholdPercentage values representation of the target element which are visible. Default value is 0string0

Built with StencilJS

0.4.9

1 year ago

0.4.8

1 year ago

0.5.0

1 year ago

0.5.1

1 year ago

0.4.7

1 year ago

0.4.5

1 year ago

0.4.4

1 year ago

0.4.6

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.3.9

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago