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

Fix Link transition perf by specifying properties #8

Merged
merged 1 commit into from
Jun 6, 2019

Conversation

kylesuss
Copy link
Collaborator

@kylesuss kylesuss commented Jun 6, 2019

transition: all can lead to p bad performance and I noticed that some things can be a bit janky as I was importing this into the other app. Better to specify the specific properties you want to transition so the browser doesn't have to guess!

color: ${darken(0.07, color.secondary)};
}
&:active {
transform: translate3d(0, 0, 0);
transform: translateY(0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also no need for translate3d as the animation looks nice already w/ the updated transition properties specified.

@kylesuss kylesuss requested a review from domyen June 6, 2019 19:37
@domyen
Copy link
Member

domyen commented Jun 6, 2019

Nice!

@domyen domyen merged commit aafc25c into master Jun 6, 2019
@kylesuss
Copy link
Collaborator Author

kylesuss commented Jun 6, 2019

🚀 PR was released in v0.0.19 🚀

@ghengeveld ghengeveld deleted the fix-link-transition branch November 28, 2019 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants