Created
May 18, 2016 11:39
-
-
Save cballou/95d5cc08fe3cd4fbc8686e67c191ba68 to your computer and use it in GitHub Desktop.
An example of using the jQuery Double Rainbow plugin.
This file contains hidden or 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
$.fn.doubleRainbow.defaults = { | |
startDistance: 500, | |
steps: 20, | |
startBgColor: '#333333', | |
endBgColor: '#999999', | |
startColor: '#CCCCCC', | |
endColor: '#FFFFFF' | |
}; |
This file contains hidden or 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
<header> | |
<div class="container"> | |
<h1>My Amazing Hero Header</h1> | |
<button id="exampleButton">My Call To Action. Tap Me!</button> | |
</div> | |
</header> | |
<script type="text/javascript"> | |
$('#exampleButton').doubleRainbow({ | |
steps: 20, | |
startColor: '#FFF', | |
startBgColor: '#222', | |
endColor: '#FFF', | |
endBgColor: '#900' | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment