Written by Super User on .

Article Index

The Widgetkit Lightbox allows you to view images, HTML and multi-media content on a dark dimmed overlay without having to leave the current page.

Features at a glance

  • Display images, videos, HTML, Iframes, Ajax requests and SWF
  • Supports YouTube, Vimeo, MP4 (h.264), WebM and FLV movies
  • Group lightboxes and mix different content types
  • Responsive design to fit images great on mobile devices
  • Load other widgets in lightbox
  • 3 different opening and closing transitions
  • 4 different caption styles
  • Keyboard and mouse scroll wheel navigation
  • Build on the latest jQuery version
  • Works with Joomla and WordPress


Different animations - fade, elastic and none

<a data-lightbox="transitionIn:fade; transitionOut:fade;" href="/images/demo/gallery/column_4/1_big.jpg"><img class="pic3d" src="/images/demo/gallery/column_4/1.jpg" border="0" alt="fade" width="250" height="165" /></a>

Different title positions- float, inside and over

<a data-lightbox="transitionIn:elastic; transitionOut:elastic; titlePosition:float;" href="/images/demo/gallery/column_4/5_big.jpg" title="Lorem Ipsum is simply dummy text of the printing and typesetting industry"><img class="pic3d" src="/images/demo/gallery/column_4/5.jpg" border="0" alt="fade" width="250" height="165" /></a>

You can use it in a gallery

<a data-lightbox="transitionIn:elastic; transitionOut:elastic; titlePosition:float; group:gallery1" href="/images/demo/gallery/column_4/8_big.jpg" title="Lorem Ipsum is simply dummy text of the printing and typesetting industry"><img class="pic3d" src="/images/demo/gallery/column_4/8.jpg" border="0" alt="fade" width="250" height="165" /></a>

Various examples in one gallery (try also using the keyboard and mouse scroll wheel)

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Load Widgets In A Lightbox

Use #wk-ID to load widgets like slideshows or galleries in a lightbox. For example: Widgetkit Slideshow

<a data-lightbox="width:945;height:637;" href="#wk-2">Lightbox</a>

How To Use

Use the HTML5 custom data attribute data-lightbox to activate the lightbox. You can set various lightbox parameters to the data attribute. For example:

<a data-lightbox="width:1000;height:600;" href="http://www.wikipedia.org">Lightbox</a>

Here is a list of the most common parameters:

  • titlePosition - How should the title show up? (float, outside, inside or over)
  • transitionIn - Set a opening transition. (fade, elastic, or none)
  • transitionOut - Set a closing transition (fade, elastic, or none)
  • overlayShow - Set to true or false
  • scrolling - Set to yes or no
  • width - Set a width in pixel
  • height - Set a height in pixel
  • padding - Set a padding in pixel

Reveal Lightbox

The reveal lightbox allows you to view modules in a pop overlay that slides from the top. There are three positions that you could place your module that will popup in the reveal lightbox:

  • reveal-a - Uses the stacked module layout. This can be used to show one or more modules, one on top of the other, on the reveal popup.
  • reveal-b - Uses the equal module layout. This can be used to show one or more modules, side by side, on the reveal popup.
  • reveal-c - Uses the double module layout. This can be used to show one or more modules, one bigger than the rest, on the reveal popup.

You can set different sizes of the reveal lightbox by adding one of the following module suffix: small, medium, large or xlarge

To show the reveal on a page, add the module you want to show in the popup in one of the above module positions and on your button or link use the data-reveal-id attribute as follows:

<a class="button-color button-action" href="#" data-reveal-id="reveal-a">Sign Up</a>


Popup 1 Popup 2 Popup 3

Rector's Interview to PTV World
Interview of the Rector Foundation University Islamabad, Maj Gen Khadim Hussain, HI(M) (Retd) will be telecasted in PTV World's programme 'Sky is the Limit' a
Read more
FUIC Holds Welcome Ceremony
Foundation University Islamabad Campus (FUIC) has organized its Welcome Ceremony on January 2, 2017, which was attended by all new MBBS and BDS stude
Read more
DPT Admissions Spring 2017
Foundation University Institute of Rehabilitation Sciences Doctor of Physical Therapy[DPT] Admissions Spring 2017 Click on the following link to download a
Read more
Read more
MBBS Results
Result Notification of the First Professional MBBS Batch-2016 (Session 2016-2020) Annual Examination - 2016, held in Dec 2016. Click on the following link
Read more
Current Job Openings
Foundation University Islamabad is an equal opportunity employer. Attractive salary package commensurate with qualification and experience would be offered.
Read more
FUIC Catering Charges 2017
Catering charges for the year 2017 has been reviewed by the Management of FUIC from Rs.290 to Rs.280 per day. All boarder students are required to deposit
Read more
Medical Examination Form
Medical Examination Form for MBBS/BDS Session 2017 Students is available for download. Download the Form [Medical Examination Form] Fill this form till Se
Read more
BDS Results
  Result Notification of the 1st Professional (Session 2016-2019) Annual Examination - 2016, held in Nov 2016. Click on the following link for downlo
Read more