Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Created January 14, 2011 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tathamoddie/779044 to your computer and use it in GitHub Desktop.
Save tathamoddie/779044 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Fade Test</title>
</head>
<body>
<p>
When you click this text it should fade out over one second, then back in over one second.
Works perfectly in Firefox, Chrome, Opera and IE8.
In IE 9.0.7930.16406 it flashes out, flashes in, fades out, fades in, then flashes out.
</p>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$("p").click(function () {
$(this)
.fadeOut(1000)
.fadeIn(1000);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment