Created
March 8, 2012 17:51
-
-
Save srobbin/2002330 to your computer and use it in GitHub Desktop.
Approach Demo: Grow and color
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
<!-- | |
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