Skip to content

Commit

Permalink
docs(Foundations): transitions WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
VadymBezpalko committed Jan 29, 2024
1 parent f561104 commit b37af26
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 51 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { Meta, Canvas } from '@storybook/addon-docs';

import { TransitionTable } from '../../components/Transition/TransitionTable';
import {
delayEntries,
delayUseCases,
} from '../../components/Transition/transitionDelay';
import {
timingEntries,
timingUseCases,
} from '../../components/Transition/transitionTiming';
import {
durationEntries,
durationUseCases,
} from '../../components/Transition/transitionDuration';

<Meta title="Foundations/Transition" />

# Transition

Transitions are used to animate changes in an element's style. They are often used to make elements appear more smoothly or to create a visual effect.

## Usage

To use spacing tokens in your project, you need to import the specific transition constant from `@livechat/design-system-react-components`:

Currently, the following transition tokens are available:

- TransitionDurationToken
- TransitionTimingToken
- TransitionDelayToken

```jsx
import {
TransitionDurationToken,
TransitionTimingToken,
TransitionDelayToken,
} from '@livechat/design-system-react-components';
```

```css
.my-element {
transition: var(${TransitionDurationToken.Fast1}) var(
${TransitionTimingToken.EaseIn}
);
}
```

## Duration

## Timing

## Delay
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export type TransitionShape = {
enum: string;
token: string;
value: string;
desc: string;
};

0 comments on commit b37af26

Please sign in to comment.