jQuery LavaLamp Github repository view the full revision history of jQuery LavaLamp and fork it @github!
Updated to use on
instead of bind
, because of this LavaLamp now requires jQuery 1.7 or later.
Download jquery.lavalamp 1.4.1 release archive
This release provides a fix to a longstanding bug (noLava elements with additional classes), callbacks and customizable class names
focusin
and focusout
to support keyboard usagehoverStart, hoverFinish, returnStart, returnFinish
: callbacks for different stages of the hover process.selectClass, homeClass, skipClass
: optional overrides for internally used classes selectedLava, homeLava
and noLava
skipClass (noLava)
Download jquery.lavalamp 1.4 release archive
This release sees a major change to the hover .backLava
element, namely, margins and padding are forced to zero. This is to properly support the new includeMargins
option.
container
option allows changing the container for the hover .backLava
element to any valid DOM element. The default setting is '' or an empty string. If left unset, the value of the target
option will be used. See the new multi-layer demos for examples.includeMargins
code option causes the hover element to expand to include the margins of the target element. Default for this option is false
. See the last multi-layer demo.includeMargins
and new target
and container
features. To correct this, LavaLamp now forces margin:0
and padding:0
on the hover .backLava element. While this did not effect demos on this site, you may need to adjust your .backLava CSS to work properly with this version by adjusting the CSS padding and margins on your target elements.Download jquery.lavalamp 1.3.5 release archive
Now what? Check out the tutorial and demos!
Note: If you find a bug, have a feature request or better yet, a pull request, please submit an issue and let me know what you've found.
Finally out of beta - sorry for the long wait, and thanks for the feedback.
target
option allows changing the target element from li
to any valid jquery selector. See target demoreturnHome
and returnDelay
, refined internal variable
usage.li
dimensions, including both elements' all four border sizes.mouseleave/mouseenter
to bind events so LavaLamp should continue to work with jQuery 1.2.3 onward.move()
command in
returnDelay
to fix errors some were seeing - thanks to Michel and
Richard for noticing this.
mouseover/mouseout
events to mouseenter/mouseleave
to fix jerky/stuttering animation
problem when using large margins on <li>
elements. Thanks to Thomas for the solution
and Chris for clearly demonstrating the problem.
noLava
class detection to prevent LavaLamp effect on <li>
elements with this class. See the demo page for details.
$
references inside plugin to work correctly with jQuery.noConflict()
mode..current
class to .selectedLava
for clarity and improved supportjQuery.noConflict()
modeautoReturn: true
- if set to false, hover will not return to last selected
item upon list mouseout.returnDelay: 0
- if set, will delay auto-return feature specified # of
milliseconds.setOnClick: true
- if set to false, hover will return to default element
regardless of click event.homeLeft: 0, homeTop: 0
- if either set to non zero value, absolute
positioned li element with class .home is
prepended to list for homing feature.homeWidth: 0, homeHeight: 0
- if set, are used for creation of li.home
element.returnHome: false
- if set along with homeLeft or homeTop, lavalamp hover
will always return to li.home after click.linum
to startItem
when you upgrade!linum
parameter created a nifty out-of-bounds fly in effect that several people requested as a feature, so the home features are born!height
and width
- I opened a ticket here: http://dev.jquery.com/ticket/3881 but no one seemed interested in fixing it at the time. UPDATE: John marked this as FIXED in the jQuery 1.4 core and later as of 2009-12-05; see link above for details.<li>
element selection