Skip to content

Instantly share code, notes, and snippets.

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 cballou/95d5cc08fe3cd4fbc8686e67c191ba68 to your computer and use it in GitHub Desktop.
Save cballou/95d5cc08fe3cd4fbc8686e67c191ba68 to your computer and use it in GitHub Desktop.
An example of using the jQuery Double Rainbow plugin.
$.fn.doubleRainbow.defaults = {
startDistance: 500,
steps: 20,
startBgColor: '#333333',
endBgColor: '#999999',
startColor: '#CCCCCC',
endColor: '#FFFFFF'
};
<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