Home > Web Front-end > CSS Tutorial > Why Do Webkit Animations Flicker Before a Transform Transition?

Why Do Webkit Animations Flicker Before a Transform Transition?

Linda Hamilton
Release: 2024-12-08 18:29:10
Original
304 people have browsed it

Why Do Webkit Animations Flicker Before a Transform Transition?

Flickering Transitions in Webkit-animations

Question:

Why is there a momentary flicker prior to a Webkit-transform animation using CSS transitions?

Answer:

Cause:
This flicker occurs due to Webkit's handling of the back side of rotated or translated elements during the transition.

Solution:
To eliminate the flicker, add the following line of CSS to your transition:

-webkit-backface-visibility: hidden;
Copy after login

This CSS property hides the back side of the element during the transition, preventing the flicker from being visible.

The above is the detailed content of Why Do Webkit Animations Flicker Before a Transform Transition?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template