Skip to content

How exactly does Percy attempt to freeze animations? #455

Answered by Robdel12
istateside asked this question in Support
Discussion options

You must be logged in to vote

Hey @istateside! Percy will freeze CSS animations by overriding animation and transition to be none. If the animation is an SVG, that SVGs position/state will be captured when the DOM is cloned (so when the percy snapshot is captured). SVGs don't animate in our browsers, but since the DOM changes between snapshots with these, that can cause flakes too.

The best way to debug these would be to send over a snapshot id and we can look at the snapshot to see what's going on. If any state is encoded in the DOM (inline styles, transform attributes, etc), that will cause diffs since the DOM state is different.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@istateside
Comment options

Answer selected by istateside
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants