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

only animate tabs slider after first render #116

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

Haberkamp
Copy link
Contributor

What?

This PR improves the UX for the tab component by only animating the tab slider after the initial render.

Why?

Motion in design is used to convey meaning. The slider animation from one point to another helps the user understand from which tab we're coming from and to which one we're going. Adding this animation on the first render is confusing. Because it's not relevant from where we're coming.

How?

After the component mounts the slider gets a CSS class that enables the animation.

Testing?

You can check out the story in the deployment preview below.

Copy link

vercel bot commented Apr 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
meteor-admin-sdk-docs ✅ Ready (Inspect) Visit Preview Apr 4, 2024 2:52pm
meteor-component-library ✅ Ready (Inspect) Visit Preview Apr 4, 2024 2:52pm

@Haberkamp Haberkamp self-assigned this Apr 5, 2024
@Haberkamp Haberkamp merged commit 856489b into main Apr 5, 2024
8 checks passed
@Haberkamp Haberkamp deleted the only-animate-tab-slider-after-first-render branch April 5, 2024 08:12
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

Successfully merging this pull request may close these issues.

2 participants