Skip to content

Instantly share code, notes, and snippets.

@jtaby
Created August 11, 2011 17:45
Show Gist options
  • Save jtaby/1140267 to your computer and use it in GitHub Desktop.
Save jtaby/1140267 to your computer and use it in GitHub Desktop.
var MyApp = SC.Application.create({
doubleScale: function() {
$('.not-pressed').animate({scale:'+=1'},500);
},
halfScale: function() {
$('.not-pressed').animate({scale:'-=1'},500);
},
translateDown: function() {
$('.not-pressed').animate({translateY:'+=300'},500);
},
translateUp: function() {
$('.not-pressed').animate({translateY:'-=300'},500);
},
bothScaleAndTranslateUp: function() {
$('.not-pressed').animate({
translateY:'+=150',
scale:'+=1',
rotateY: '6.24',
rotateX: '3.15',
rotateZ: '3.15'
},1500);
},
bothScaleAndTranslateDown: function() {
$('.not-pressed').animate({
translateY:'-=150',
scale:'-=1',
rotateZ: '0',
rotateY: '0',
rotateX: '0'
},1500), "easein";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment