Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is use case of Backface Property ? #3

Closed
madhavanand-github opened this issue Aug 21, 2022 · 1 comment
Closed

What is use case of Backface Property ? #3

madhavanand-github opened this issue Aug 21, 2022 · 1 comment

Comments

@madhavanand-github
Copy link

W3 School defines backface-visibility property as whether the back face of an element should be visible when facing the user.

I could see its effect, but I am unable to understand the use case and property itself.

@ByteGrad
Copy link
Owner

Sometimes with CSS animations & transitions there is a small 1-px 'glitch'. So with the introductory animation (when you load the page) some elements may shift by like 1px at the end. One 'trick' to try to prevent this is with 'backface-visibility: none', however this doesn't always work. The idea is that it puts the element in 3d-space and therefore gets more resources from the computer, which should prevent that 1px-shifting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants