Skip to content

Instantly share code, notes, and snippets.

@ncrohn
Created February 12, 2010 00:28
Show Gist options
  • Save ncrohn/302158 to your computer and use it in GitHub Desktop.
Save ncrohn/302158 to your computer and use it in GitHub Desktop.
SC.View.design(SC.Animatable, {
layout: { top: 20+(25*i), right: 0, left: 20, height: 25 },
transitions: {
height: { duration: .25, timing: SC.Animatable.TRANSITION_EASE_IN_OUT }
}
//--- more code ---
//--- in render method ---
for(var i=0;i<c;i++) {
var kid = children[i];
if(kid.isAnimatable) {
var f = kid.get("frame");
kid.adjust("height", 100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment