Socket
Socket
Sign inDemoInstall

lazy-attr

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lazy-attr

Make a lazy page with lazy video, embed, image and animation on scrolling.


Version published
Weekly downloads
4
decreased by-83.33%
Maintainers
1
Install size
13.1 kB
Created
Weekly downloads
 

Readme

Source

Lazy-attr

Create lazy image, embed, video and element with animation just with attributes.

Documentation


<script src="https://cdn.jsdelivr.net/npm/lazy-attr@1.0.0/lazy-attr.js"></script>
  • See example here for all the documentation:
  • https://yoannchb-pro.github.io/Lazy-attr/index.html

Github


Very short example


<iframe width="560" height="315" lazy-embed="https://www.youtube.com/embed/Y8Wp3dafaMQ?autoplay=1" lazy-poster="https://img.youtube.com/vi/Y8Wp3dafaMQ/hqdefault.jpg"></iframe>

<img lazy-animation-delay="1.2" class="scale05" alt="Random image" lazy-src="https://picsum.photos/300/300?random=8" lazy-animation="zoom" lazy-reset/>

Keywords

FAQs

Last updated on 15 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc