Skip to content

Instantly share code, notes, and snippets.

@srobbin
Created March 8, 2012 17:51
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 srobbin/2002330 to your computer and use it in GitHub Desktop.
Save srobbin/2002330 to your computer and use it in GitHub Desktop.
Approach Demo: Grow and color
<!--
Notice that the size and color of the text above changes
as your cursor approaches it.
-->
<!-- Beginning styles -->
<style>
a#demo-link {
font-size: 24px;
color: #FFFFCC;
line-height: 1.5em;
text-align: center;
text-decoration: none;
}
</style>
<!-- The element -->
<a id="demo-link">I grow and change color</a>
<!--
Approach
Note: jQuery and jQueryUI (needed for the color change) are already included in this page.
-->
<script>
$("a#demo-link").approach({
"fontSize": "40px"
, "color": "#CC3300"
}, 200);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment