🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

EasyImg is a dead simple and cross-browser jQuery plugin which adds inline background images to container elements using HTML data attributes.

background background-image

Documentation

EasyImg

EasyImg Is a jQuery Plugin created to add Inline Background Images Easily

Requirements

  • Jquery

Usage

<div data-img="bg.jpg"> </div>

Js

$.easyImg();

Default options Applied

$.easyImg({   baseFolder: './images/'  // Default   selector: 'data-img'  // Default });

Default Styles Applied

  background-size: cover;   background-position: center bottom;   background-repeat: no-repeat;

More Options coming soon.

Thank you.


You May Also Like