ng-animate border-spacing causes slight jump when animating #5255
Description
While I was messing around with the ngAnimate module in the 1.2.3 release I noticed slight "jumps" in some of the elements I was animating, but not all of them. After some digging I realized that the jump in these particular elements was being caused by border-spacing: 1px 1px
being applied to them during the animation. I created a small demo that demonstrates the behavior I was seeing:
After some googling, I came to this issue thread and then realized that the jumpy elements I had were all utilizing the clearfix hack which uses display: table
.
Without having to modify any of my other CSS, a quick workaround I found was to add the following to my CSS:
.ng-animate { border-collapse: collapse; }
@matsko what's the nasty bug that makes clip
or border-spacing
necessary? Perhaps there's some other CSS properties we could try.