Skip to content

monners/responsive-image-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

responsive-image-loader

A module for lazy loading and hot swapping responsive images

// EXAMPLE USAGE CALL:
 init({
     baseUrl: 'data-img-desktop', // will be used as largest, AND default if no other responsive tags are used
     responsive: [ // Array of breakpoint objects
         {
             breakpoint: 1024,
             url: 'data-img-tablet'
         },
         {
             breakpoint: 769,
             url: 'data-img-mobile'
         }
     ],
     lazyLoad: true
});

About

A module for lazy loading and hot swapping responsive images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published