@finsweet/attributes-autovideo

1.5.0 • Public • Published

autovideo Attribute

Auto-play videos only in viewport.

The script detects all videos on the page (Background Video components & <video> elements used in HTML Embeds) and plays/pauses them based on if they are visible in the viewport.

CDN Import

<!-- [Attributes by Finsweet] CMS Display Values -->
<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-autovideo@1/autovideo.js"></script>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.011latest
1.1.1-beta.10beta

Version History

VersionDownloads (Last 7 Days)Published
1.5.011
1.4.10
1.4.00
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.20
1.2.10
1.2.00
1.1.1-beta.10
1.1.00
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @finsweet/attributes-autovideo

Weekly Downloads

11

Version

1.5.0

License

none

Unpacked Size

7.51 kB

Total Files

6

Last publish

Collaborators

  • erikmejias
  • alexiglesias