Skip to content

Instantly share code, notes, and snippets.

@bnb
Created September 6, 2014 15:59
Show Gist options
  • Select an option

  • Save bnb/894bc11c5bbda4c78d70 to your computer and use it in GitHub Desktop.

Select an option

Save bnb/894bc11c5bbda4c78d70 to your computer and use it in GitHub Desktop.
Welcome to callback hell.
$('.title')
.typetype("Hello there.", { e: 0.04, t: 100,})
.backspace(
12,
{
t: 75,
callback: function() {
$('.title')
.delay(1122)
.typetype("I am &!", { e: 0.04, t: 100,})
.backspace(
6,
{
t: 75,
callback: function() {
$('.subtitle')
.delay(1122)
.typetype("I'm also known as bnb, bang, bitnb, bitandbang, and Tierney Coren.", { e: 0.04, t: 100,})
.backspace(
6,
{
t: 75,
callback: function() {
// and one or two further.
}
}
);
}
}
);
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment