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

Chapter 18 > Animate page elements #23

Closed
helsus opened this issue Jul 27, 2017 · 3 comments
Closed

Chapter 18 > Animate page elements #23

helsus opened this issue Jul 27, 2017 · 3 comments

Comments

@helsus
Copy link

helsus commented Jul 27, 2017

You shouldn't use 'left' for moving elements, because it will cause relayout of whole page on every frame. Use 'transform: translate'

@bpesquet
Copy link
Collaborator

You are certainly right, I'm no CSS guru. A PR would be welcome ;)

@MOSHE38
Copy link

MOSHE38 commented Jul 27, 2020

Please I like to know if this issue has been fixed @bpesquet
Thanks

@bpesquet
Copy link
Collaborator

bpesquet commented Dec 8, 2022

Since CSS animations are outside the scope of this JS-centered book, I simplified this chapter and removed this example to avoid promoting suboptimal techniques.

@bpesquet bpesquet closed this as completed Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants