Skip to content

A simple javascript plugin to create dynamic placeholder images

License

Notifications You must be signed in to change notification settings

pa-ra-kram/imgPlaceholder.js

Repository files navigation

imgPlaceholder.js

EDIT: Not working in Firefox. Will fix this soon.

A simple javascript plugin to create dynamic placeholder images. Usage:

<img data-src="imgholder.js/320x240">

or

<img src="imgholder.js/320x240">

Features include

  1. Custom text

<img src="imgholder.js/320x240&text=HelloWorld>

  1. Text color

<img src="imgholder.js/320x240&color=#fffff>

  1. Background color

<img src="imgholder.js/320x240&bg=#000000>

  1. Font size

<img src="imgholder.js/320x240&size=12>

  1. Font family

<img src="imgholder.js/320x240&font=Helvetica>

For full documentation and demo visit imgPlaceholder.js

About

A simple javascript plugin to create dynamic placeholder images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published