Download the PHP package ivopetkov/lazy-image-bearframework-addon without Composer
On this page you can find all versions of the php package ivopetkov/lazy-image-bearframework-addon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ivopetkov/lazy-image-bearframework-addon
More information about ivopetkov/lazy-image-bearframework-addon
Files in ivopetkov/lazy-image-bearframework-addon
Package lazy-image-bearframework-addon
Short Description Lazy image addon for Bear Framework
License MIT
Homepage https://github.com/ivopetkov/lazy-image-bearframework-addon
Informations about the package lazy-image-bearframework-addon
Lazy Image
Addon for Bear Framework
This addon enables you to easily create lazy-loaded images that are SEO friendly. It's based on the popular library Responsively Lazy. Multiple versions with different sizes are created on the fly and only the best one is loaded. This saves bandwidth and loads the website faster.
Download and install
Install via Composer
Download an archive
Download the latest release from the GitHub page and include the autoload file.
Enable the addon
Enable the addon for your Bear Framework application.
Usage
Attributes
filename
The name of the file to be shown. It must be in a publicly accessible directory.
aspectRatio
The proportional relationship between the width and the height of the image. It is useful for cropping and resizing the image. Example values: 1:1, 1:2, 1.5:1, etc.
loadingBackground
The type of background shown while the image is loading. Available values: none and checkered.
class
HTML class attribute value
style
HTML style attribute value
alt
HTML alt attribute value
title
HTML title attribute value
Examples
The image rendered is a square
A custom class name is added to the image HTML code
A title is added
License
Lazy image addon for Bear Framework is open-sourced software. It's free to use under the MIT license. See the license file for more information.
Author
This addon is created by Ivo Petkov. Feel free to contact me at @IvoPetkovCom or ivopetkov.com.
All versions of lazy-image-bearframework-addon with dependencies
bearframework/bearframework Version ^1.4
ivopetkov/html-server-components-bearframework-addon Version 1.*
ivopetkov/client-packages-bearframework-addon Version 1.*
ivopetkov/responsively-lazy-bearframework-addon Version 1.*