material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Joy] Add animation/transition support

Open siriwatknp opened this issue 1 year ago • 1 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] 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 avatar Mar 30 '23 07:03 siriwatknp

this will awesome for users , 👍👍👍👍

DIWAKARKASHYAP avatar May 03 '23 12:05 DIWAKARKASHYAP

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

marcpachecog avatar Jun 09 '23 21:06 marcpachecog

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 avatar Jun 12 '23 09:06 siriwatknp

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 avatar Jul 10 '23 14:07 oliviertassinari