-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Getting a 1 pixel shift occasionally during flipping #67
Comments
I think the counter parent element might change width? Perhaps you can set it to a fixed width. Could also be the font size, could also be triggered by CSS transforms. |
I found the issue. .tick [data-view] Has max-width defined in em, but the font size is variable. My guess, is that the browser is changing the width depending if it's a '1' or an '8' because the '1' obviously takes up far less width then the 8 does. You should be able to easily recreate this problem with the code above, and using 'gotham light' font. |
I also had this issue and fixed it by specifying a fixed width for each flipper like this… .tick-flip {
width: 1.125em;
} |
I was able to fix this issue by using a Mono font since each number should take up the same amount of space |
Pixel.Shift.mp4
If you watch the video, there is occasionally a 1 pixel shift back and forth. Not all the time, just on occasion.
My best guess, is that this is likely a css rounding error somewhere.
Code behind
The text was updated successfully, but these errors were encountered: