Skip to content

Instantly share code, notes, and snippets.

@simonwex
Created July 12, 2010 21:50
Show Gist options
  • Save simonwex/473118 to your computer and use it in GitHub Desktop.
Save simonwex/473118 to your computer and use it in GitHub Desktop.
Text2Screen.configure({
messageHandler: function(message){
//Do something with the message.
Text2Screen.readyForMore();
},
states: ['intro', 'call_to_action', 'display'],
transitions: {
enterIntro: function(){
// run some animations
},
enterCallToAction: function(){
// run some animations for entering the call to action
},
enterDisplay: function(from_state, to_state){
// Start showing messages
Text2Screen.readyForMore();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment