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

font render issue (blurry fonts) if element has transitionX with decimal separator #20

Open
harellevy opened this issue Mar 18, 2019 · 1 comment

Comments

@harellevy
Copy link

if an active element in carousel landing in center sometimes its not pixel perfect and have decimal separator in translateX value. this causes blurry fonts in chrome.
I think it's better to round the content grab element translateX value after transition complete.
Screen Shot 2019-03-18 at 15 27 40

@ZouYouShun
Copy link
Owner

The first problem because we using the init width to calculate the position move value. If the image size is different with loaded the position will has some pixel different, currently, you can use a tag to contain that to solve this issue, like below.

<div>
    <component></component>
</div>

The second problem can you give me some example with stackblitz?

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