Skip to content

Instantly share code, notes, and snippets.

@codepo8
Created August 3, 2011 08:31
Show Gist options
  • Save codepo8/1122172 to your computer and use it in GitHub Desktop.
Save codepo8/1122172 to your computer and use it in GitHub Desktop.
Edge JS
/**
* Adobe Helium: symbol definitions
*/
window.symbols = {
"stage": {
version: "0.1",
baseState: "Base State",
initialState: "Base State",
parameters: {
},
content: {
dom: [
{
id:'Text1',
type:'text',
rect:[85,91,0,0],
text:"Why????",
font:["Arial Black, Gadget, sans-serif",[24,""],"rgba(0,0,0,1)","normal","none",""],
},
],
symbolInstances: [
],
},
states: {
"Base State": {
"#Text1": [
["color", "color", 'rgba(177,69,36,1.00)'],
["transform", "translateX", '122px'],
["transform", "rotateZ", '45deg'],
["style", "height", '162px'],
["style", "font-size", '200px'],
["transform", "translateY", '334px'],
["style", "width", '290px']
],
"#stage": [
["color", "background-color", 'rgba(0,0,0,1.00)'],
["style", "height", '400px'],
["style", "width", '550px']
]
}
},
actions: {
},
bindings: [
],
timelines: {
"Default Timeline": {
fromState: "Base State",
toState: "",
duration: 2000,
timeline: [
{ id: "eid12", tween: [ "color", "#Text1", "color", 'rgba(177,69,36,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(177,69,36,1.00)'}], position: 0, duration: 0, easing: "linear" },
{ id: "eid3", tween: [ "transform", "#Text1", "translateX", '-146px', { valueTemplate: undefined, fromValue: '122px'}], position: 0, duration: 1000, easing: "linear" },
{ id: "eid10", tween: [ "transform", "#Text1", "translateX", '-178px', { valueTemplate: undefined, fromValue: '-146px'}], position: 1000, duration: 1000, easing: "linear" },
{ id: "eid13", tween: [ "color", "#stage", "background-color", 'rgba(0,0,0,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1.00)'}], position: 2000, duration: 0, easing: "linear" },
{ id: "eid6", tween: [ "style", "#Text1", "width", '290px', { valueTemplate: undefined, fromValue: '290px'}], position: 1000, duration: 0, easing: "linear" },
{ id: "eid9", tween: [ "transform", "#Text1", "rotateZ", '-53deg', { valueTemplate: undefined, fromValue: '45deg'}], position: 1000, duration: 1000, easing: "linear" },
{ id: "eid4", tween: [ "transform", "#Text1", "translateY", '-241px', { valueTemplate: undefined, fromValue: '334px'}], position: 0, duration: 1000, easing: "linear" },
{ id: "eid11", tween: [ "transform", "#Text1", "translateY", '218px', { valueTemplate: undefined, fromValue: '-241px'}], position: 1000, duration: 1000, easing: "linear" },
{ id: "eid7", tween: [ "style", "#Text1", "font-size", '200px', { valueTemplate: undefined, fromValue: '200px'}], position: 1000, duration: 0, easing: "linear" },
{ id: "eid5", tween: [ "style", "#Text1", "height", '162px', { valueTemplate: undefined, fromValue: '162px'}], position: 1000, duration: 0, easing: "linear" }]
}
},
}};
/**
* Adobe Edge DOM Ready Event Handler
*/
$(window).ready(function() {
$.Edge.initialize(symbols);
});
/**
* Adobe Edge Timeline Launch
*/
$(window).load(function() {
$.Edge.play();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment