I'm trying to achieve sliding effect with the new ng-animate
feature of Angular. I've taken some code from the demo site and have prepared a fiddle.
The problem is that elements below the sliding DIV
keeps shifting up and down when the item is being swapped from the array. I tried with line-height
but no success.
Is it possible to fix the above behavior? or any better way to achieve it only with angular and CSS?
You can wrap the input and the button in a div and also put it in the absolute position.
Here is a demo
HTML
CSS
JS
Try this :
CSS:
HTML: