画像ロールオーバースクリプト
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
js
.gitignore
Gruntfile.js
README.md
build_grunt.bat
grunt.command
package.json

README.md

imgRollover

html

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/imgRollover.min.js"></script>

JavaScript

//Default
$(function(){
    new ImgRollover.default();//('selector','suffix')
});

//Rollover with Fade
$(function(){
    new ImgRollover.Fade();//('selector','suffix',fadetime)
});

default arguments

selector: '.imgOver'
suffix: '_o'
fadetime: 200