Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
/ HoverState.js Public archive

A handy jQuery plugin that preloads your images hover state, then displays it "onHover".

Notifications You must be signed in to change notification settings

springload/HoverState.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

#HoverState.js

A handy jQuery plugin that preloads your images hover state, then displays it "onHover".

##Requirements:

  • jQuery 1.*

##Usage:

Apply .hoverState() to your image. The default behaviour will switch out your image to (image name)-on.(extension). "-on" can be overridden by using the "hoverExt" option.

<p><img class="hover_state" src="/images/springload.png" alt="Springload" /></p>

<script type="text/javascript">
    $('.hover_state').hoverState();
</script>

##Options:

  • hoverExt String Define the extra text that gets added to the image's file name on hover Default '-on'

About

A handy jQuery plugin that preloads your images hover state, then displays it "onHover".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published