-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f561104
commit b37af26
Showing
3 changed files
with
59 additions
and
51 deletions.
There are no files selected for viewing
51 changes: 0 additions & 51 deletions
51
packages/react-components/src/stories/foundations/Transition.stories.mdx
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
...ages/react-components/src/stories/foundations/Transition/Transition.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
6 changes: 6 additions & 0 deletions
6
packages/react-components/src/stories/foundations/Transition/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |