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

[joy-ui] Add animation/transition support #36695

Open
2 tasks done
siriwatknp opened this issue Mar 30, 2023 · 4 comments
Open
2 tasks done

[joy-ui] Add animation/transition support #36695

siriwatknp opened this issue Mar 30, 2023 · 4 comments
Labels
customization: css Design CSS customizability design: joy This is about Joy Design, please involve a visual or UX designer in the process new feature New feature or request package: joy-ui Specific to @mui/joy priority: important This change can make a difference waiting for 👍 Waiting for upvotes

Comments

@siriwatknp
Copy link
Member

siriwatknp commented Mar 30, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

Currently, Joy UI components do not have built-in animation or transition. Joy UI should provide an API or a guide to integrate with existing popular libraries:

Examples 🌈

No response

Motivation 🔦

Animation and transition is an important part in building modern web application.

@siriwatknp siriwatknp added status: waiting for maintainer These issues haven't been looked at yet by a maintainer new feature New feature or request package: joy-ui Specific to @mui/joy customization: css Design CSS customizability waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 30, 2023
@DIWAKARKASHYAP
Copy link
Contributor

this will awesome for users , 👍👍👍👍

@marcpachecog
Copy link

Hi @siriwatknp what is the status of this issue? Thanks! :)

@siriwatknp
Copy link
Member Author

siriwatknp commented Jun 12, 2023

Hi @siriwatknp what is the status of this issue? Thanks! :)

Thanks for asking. Our priority at this point is to add more components to the same level of Material UI. We will then look into transition/animation.

Anyway, we could start researching the possibility of having a theme plugin that enhance common transition to components, for example, the toggle switch. The usage could look like this:

import { CssVarsProvider, extendTheme } from '@mui/joy/styles';
import { bouncy } from 'some-joy-community';

const theme = extendTheme(bouncy);

<CssVarsProvider theme={bouncy}>
  <App />
</CssVarsProvider>

@siriwatknp siriwatknp added the design: joy This is about Joy Design, please involve a visual or UX designer in the process label Jun 19, 2023
@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 10, 2023

Currently, Joy UI components do not have built-in animation or transition.

Ah yes, awesome! I feel that there is soo much potential for adding animations and transitions to the default styles of the components. These are most of the time simple CSS transitions which theme.transitions.create() should already get us covered, in the same way, it works in https://tailwindcss.com/docs/transition-property. So I think it's simply a matter of adding the CSS.

Joy UI should provide an API or a guide to integrate with existing popular libraries

Right a bit more complete. But I think this should be done as a second iteration, it sounds much less important than the point above, e.g. Material UI uses a Fade component while in https://ui.shadcn.com/docs/components/alert-dialog, it's done directly with CSS.

@oliviertassinari oliviertassinari added the priority: important This change can make a difference label Oct 19, 2023
@danilo-leal danilo-leal changed the title [Joy] Add animation/transition support [joy-ui] Add animation/transition support Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: css Design CSS customizability design: joy This is about Joy Design, please involve a visual or UX designer in the process new feature New feature or request package: joy-ui Specific to @mui/joy priority: important This change can make a difference waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

4 participants