@pluginjs/image-loader
v0.8.9
Published
A flexible modern image-loader js plugin.
Downloads
53
Readme
ImageLoader
A flexible modern image-loader js plugin.
Introduction
Installation
Yarn
yarn add @pluginjs/image-loader
NPM
npm i @pluginjs/image-loader
Getting Started
CDN:
Development:
<script src="https://unpkg.com/@pluginjs/image-loader/dist/image-loader.js"></script>
Production:
<script src="https://unpkg.com/@pluginjs/image-loader/dist/image-loader.min.js"></script>
Initialize
HTML:
<div class="element"></div>
ECMAScript Module:
import ImageLoader from "@pluginjs/image-loader"
import "@pluginjs/image-loader/dist/image-loader.css"
ImageLoader.of(document.querySelector('.element'), options)
CommonJS:
require("@pluginjs/image-loader/dist/image-loader.css")
const ImageLoader = require("@pluginjs/image-loader")
ImageLoader.of(document.querySelector('.element'), options)
Browser:
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/image-loader/dist/image-loader.css">
<script src="https://unpkg.com/@pluginjs/image-loader/dist/image-loader.js"></script>
<script>
Pj.imageLoader('.element', options)
</script>
Browser support
Tested on all major browsers.
| IE / Edge | Firefox | Chrome | Safari | Opera | | --------- | --------- | --------- | --------- | --------- | | IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|
License
@pluginjs/image-loader is Licensed under the GPL-v3 license.
If you want to use @pluginjs/image-loader project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us [email protected].
Copyright
Copyright (C) 2022 Creation Studio Limited.