Slide up/down effect with ng-show and ng-animate

Tags: css,css3,angularjs

Problem :

I'm trying to use ng-animate to get a behavior similar to JQuery's slideUp() and slideDown(). Only I'd rather use ng-show

I'm looking at the ng-animate tutorial here -,

and I can reproduce the fade in/out effect in the example provided.

How could I change the css to get slide up/down behaviour? Also, if possible, it's better that the css doesn't know about the component height in pixels. That way I can reuse the css for different elements.

Solution :

I've written an Angular directive that does slideToggle() without jQuery.

    CSS Howto..

    How to place text over different images with different positions?

    Trying to find the width of hidden content in order to resize the containing div to show the content (jQuery)

    CSS - How to pad an elements width by 50% of itself?

    How to make this CSS into a responsive one? [closed]

    How can I display 2 big buttons next to each other html & css

    How to make one side of a div pointy with CSS?

    How to create dynamic CSS based on user input

    How to give outer glow effect to column in HTML/CSS?

    How to make my button display two different images once clicked?

    How to extend background CSS styling indefinitely along the x-axis?

    How to parse the default css property to inline style attribute

    How to truncate text in select box using CSS only

    How to add CSS to CKEDITOR?

    How to resize grid-view column width?

    How to change width to fill the remaining space (CSS)

    How to reduce shiny interactive rmarkdown margins?

    How to center
      in a page?

    How to load CSS in Django templates?

    How to document a webpage HTML and CSS using comments [closed]

    How to reduce div size in CSS using twitter bootstrap?

    CSS - how to place an error/hint message to the right of the input box

    How to combine this css?

    How implement a button clear in a RadDatePicker

    Javascript: Hover over Issues & How can I structure the html efficiently?

    How do I isolate an image from the html so that I can edit where it goes on the website?

    CSS Sprites - How to leave Hover button in depressed state

    How do I make a CSS triangle with smooth edges?

    How to force css borders to display on layered page?

    CSS How to fix element position after some scroll without using jquery

    How can I add my own CSS styles to CKEditor