Skip to content

Instantly share code, notes, and snippets.

@panayi
Created June 14, 2012 19:01
Show Gist options
  • Select an option

  • Save panayi/2932226 to your computer and use it in GitHub Desktop.

Select an option

Save panayi/2932226 to your computer and use it in GitHub Desktop.
App.NavPanelView = Ember.View.extend({
closedHeight: 40,
openedHeight: 500,
mouseover: function(){
var openedHeight = this.get('openedHeight');
this.$().animate({ height: openedHeight }, 'fast');
},
mouseout: function(){
var closedHeight = this.get('closedHeight');
this.$().animate({ height: closedHeight }, 'fast');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment