Created
February 28, 2013 22:18
-
-
Save old-campos/5060624 to your computer and use it in GitHub Desktop.
A CodePen by Francisco Campos. Double Click jquery
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dubba Click</title> | |
<link rel='stylesheet' type='text/css' href='stylesheet.css'/> | |
<script type='text/javascript' src='script.js'></script> | |
</head> | |
<body> | |
<div></div> | |
</body> | |
</html> |
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() { | |
$('div').dblclick(function() { | |
$(this).fadeOut('fast'); | |
}); | |
}); | |
$(document).ready(function() { | |
$("div").mouseenter(function() { | |
$("div").fadeTo("fast",1); | |
$("div").mouseleave(function() { | |
$("div").fadeTo("fast",0.25); | |
}); | |
}); | |
}); |
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
div { | |
height: 100px; | |
width: 100px; | |
border-radius: 5px; | |
background-color: #ABCDEF; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment