Skip to content

Instantly share code, notes, and snippets.

@neilbradley
Created September 18, 2009 09:00
Show Gist options
  • Save neilbradley/188955 to your computer and use it in GitHub Desktop.
Save neilbradley/188955 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My Account</title>
<script type="text/javascript" src="/ScriptLibrary/glow/1.5.1/core/core.js"></script>
</head>
<body>
<div class="notice">Welcome message</div>
</body>
</html>
<script type="text/javascript">
var noticeAnimation = glow.anim.css(".notice", 30, {
"opacity": { to: 0 }
});
glow.events.addListener(noticeAnimation, "complete", function() {
glow.dom.get(".notice").remove();
});
noticeAnimation.start();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment