Skip to content

Commit e5247e9

Browse files
feat(animations): add 'translate-from-right' keyframe
1 parent cc3c13d commit e5247e9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

libs/design-core/src/utils/createAnimationsPlugin.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ export function createAnimationsPlugin(): TailwindPlugin {
8888
from: { transform: 'translateX(0px)', opacity: '1' },
8989
to: { transform: 'translateX(var(--spacing-10))', opacity: '0' },
9090
},
91+
'translate-from-right': {
92+
from: {
93+
transform: 'translateX(4px)',
94+
},
95+
to: {
96+
transform: 'translateX(0px)',
97+
},
98+
},
9199
},
92100
animation: {
93101
'content-show': 'content-show 300ms ease-in',

0 commit comments

Comments
 (0)