Lightweight Multifunctional Popup Window Demos

A selection of demos, view the source code for the full code.

Basic usage

Default image
Default External Site
Default Inline
Default AJAX
External Site with dimension params

Intermediate Demos

Function
jQuery
HTML
Custom type 'youtube'
Different preloader

Advanced Demos

Extending animations
Replacing content
Callbacks - check console.log!

Error Handling

Default Error
AJAX Error
Image Error

Gallery

Popup.js was intentionally created without a built-in gallery, but flexible enough to be extended and create one if need be.

Here is an example gallery. (Which, when minified and gzipped, is still only ~2.15kb WITH popup.js!)

Image 1
AJAX
Image 2
External Site