TheRusskiy / ng-slide-down

AngularJS directive for slide-down animation
41 stars 16 forks source link

feature (default open) #14

Open 0101adm opened 9 years ago

0101adm commented 9 years ago

thanks for the lib.

would like to see an option to have the element opened by default with no slide down animation.

TheRusskiy commented 9 years ago

Hello, thank you for the kind comment. What I don't get is what prevents you from setting variable responsible for the element being opened to a true value when you init it? <div ng-slide-down="obj.somethingTruthy" lazy-render>

0101adm commented 9 years ago

obj.somethingTruthy is true and the div expands (and animates) making the screen chop a bit. if it can start open (without the animation) it would prevent the chopping.