
Visuallightbox mobile ready windows#
It is disabled by default on mobile devices (Android, iPhone/iPod, Symbian, Windows Mobile, BlackBerry). Unlike many Lightbox-like scripts, it displays fine in case of horizontal scrolling of the web page. It works with both strict mode and quirks mode web pages. Slimbox 2 is compatible with all modern browsers: Firefox 2+, Internet Explorer 6+, Opera 9+ and Opera for Wii, Safari 3+, Camino and Google Chrome. Slimbox 2 is currently the smallest Lightbox-like script available for the jQuery library. You may even change any border size in the CSS and Slimbox will still work fine, which means that nothing is “hard-coded” in the source code. Also, every visual aspect of Slimbox (including images) is specified in the CSS instead of the Javascript so it is easier to style. The Slimbox Cascading Style Sheets are simpler and 100% valid (no more CSS hacks).For example, it can be easily integrated with links pointing to Flickr or Picasa Web Albums pages or with any javascript image gallery. Slimbox has a much more powerful API, allowing you to apply the Lightbox effect easily on any clickable element or from any script.You can change the duration of any effect, the counter text translation or even the navigtation keys. Slimbox can be entirely customized thanks to many options.The script itself is as tiny as 4kb (minified, uncompressed).
Visuallightbox mobile ready code#

Slimbox can be launched from the traditional image links inside the page like the original Lightbox, but also directly from Javascript using its complete API.įrom a design point of view, Slimbox 2 is very different from Lightbox:.The script is more robust for example you can try to start and stop Slimbox or navigate between images very quickly to interrupt the animations and resume them and you won’t notice any bug like in the original Lightbox where sometimes the animation stops or the elements are wrongly sized or positioned.Slimbox is more responsive it allows you to close it immediately at any time using the keyboard or mouse and to instantly navigate to any image before the current image has loaded or the animations are complete.Using a special option (“loop”), it allows you to navigate between the first and last images.It also hides select boxes in Internet Explorer 6. It temporary hides flash animations and other embedded videos while it is open to avoid display bugs in some browsers.It works perfectly on horizontal-scrolling websites.Slimbox also centers images vertically on startup, not just horizontally.

This means that you don’t have to wait for all images of the page to be loaded before clicking on a link that will launch the Lightbox effect.

It was designed to be very small, efficient, standards-friendly, fully customizable, more convenient and 100% compatible with the original Lightbox 2. Slimbox 2 is a 4 KB visual clone of the popular Lightbox 2 script by Lokesh Dhakar, written using the jQuery javascript library. Slimbox 2, the ultimate lightweight Lightbox clone for jQuery
