Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-animate border-spacing causes slight jump when animating #5255

Closed
@scottopherson

Description

@scottopherson

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:

http://jsfiddle.net/47E8m/1/

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions