Tweet



 
A very easy to use, cross platform, jQuery based UI toolkit, that's still small in size, has the features you need, and doesn't get in your way of doing things! Put jQuery and jKit on all your pages and HTML becomes so much better. And the best thing? You really don't have to be a programmer to create a trully amazing website! jKit has 99% of all the features you ever need. You don't have to check out dozens of plugins, learn how to use them, only to find out they don't work in a specific browser. And even if jKit doesn't have that one feature you need right now, jKit is fully extendable with plugins and command replacements, all that and your API always stays the same.

Hi, stranger

jKit is growing almost daily, if you don't find what you need, let us know with a post on the community forum or our social pages. Hey, who knows, maybe it's already on our ToDo list.

Content Summary

jKit Button

If you like jKit, use and want to support the project, here's a small button you can use to link to the jKit website.

Btw, if you did something really nice with jKit, send us a link to your work and if we like it, we would sure love to feature it.

Zoom command

Zoom into an image on mouseover.

Basic Usage (HTML)

data-jkit="[zoom:scale=2]"

Advanced Init (JavaScript)

$('#myelement').jKit('zoom', { 'scale': '2' });

Options

OptionValuesDefaultDescription
scaleFloat2The scaling factor on mouseover
speedInt or "fast", "slow" (Milliseconds)150The duration of the blend in and out animation in milliseconds, bigger = slower.
lightbox"yes" or "no"noIf this is set to "yes", a click will open the image in a lightbox

Events

EventDescription
zoominTriggered on zooming into the image
zoomoutTriggered on zooming out

Examples

Basic example:

Zoom an image two times (the image has to be two times bigger than the embedded size!):

Source:
<img src="../img/newyorkcity_1280x800.jpg" width="640" data-jkit="[zoom]">

More zoom:

Here's an example with a zoom factor of four:

Source:
<img src="../img/monsters.jpg" width="640" data-jkit="[zoom:scale=4]">

Event example:

In this one we're expanding our basic example with an extra div that is shown on the zoomin and hidden on the zoomout event:

So much detail, it's crazy! ;-)
Source:
<img src="../img/newyorkcity_1280x800.jpg" width="640" data-jkit="[zoom.newyork]">
<div style="display:none" data-jkit="[show:speed=250;animation=grow;onevent=newyork.zoomin][hide:speed=250;animation=grow;onevent=newyork.zoomout]">
	<strong>So much detail, it's crazy! ;-)</strong>
</div>

Lightbox example:

This one has an added lightbox on click:

Source:
<img src="../img/newyorkcity_1280x800.jpg" width="640" data-jkit="[zoom:lightbox=yes]">

Replacements

There are currently no replacements for this command.

[ Learn more about replacements ]

 

Discussions

Do you have questions or do you want to suggest new features? Than head over to our new community:

[ jKit Community ]