Skip to content

Instantly share code, notes, and snippets.

@benjino
Created June 10, 2015 20:35
Show Gist options
  • Save benjino/d3089e5e8d6999686342 to your computer and use it in GitHub Desktop.
Save benjino/d3089e5e8d6999686342 to your computer and use it in GitHub Desktop.
gpRLEo
<h1 id="introone">first intro bit of text</h1>
<h1 id="introtwo">second intro bit of text</h1>
jQuery(document).ready(function($) {
window.onload = function() {
var introone = document.getElementById("introone"),
introtwo = document.getElementById("introtwo");
TweenMax.staggerFrom([introone, introtwo], 2, {
delay: 1,
scale: 0.5,
autoAlpha: 0
}, 2);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment