Created
September 21, 2012 07:15
-
-
Save m90/3760145 to your computer and use it in GitHub Desktop.
seeThru play video on hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
//see http://api.jquery.com/hover/ for info on .hover() | |
$('#video').seeThru({start:'external'}).hover(function(){ | |
//handler for mouseover | |
this.play(); | |
}, function(){ | |
//handler for mouseout | |
this.pause(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment