Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
chore: add default animation class
Browse files Browse the repository at this point in the history
  • Loading branch information
jia-deriv committed Dec 8, 2023
1 parent 69728ff commit 6c29590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion libs/blocks/src/lib/fast-payment/base/base.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export const Carousel: Story = {
...Default.args,
content: {
cols: 'infinite',
sliderClass: 'animate-[slide_100s_linear_infinite]',
cards: sliderCards,
},
},
Expand Down
8 changes: 2 additions & 6 deletions libs/components/src/lib/cards-container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const CardsContainer = <T extends CardVariantType>({
dense = false,
variant,
className,
sliderClass,
isRtl,
sliderClass = isRtl ? `animate-slideRtl` : `animate-slide`,
}: CardsContainerProps<T>) => {
const CardComponent = Card[variant];

Expand All @@ -48,11 +48,7 @@ export const CardsContainer = <T extends CardVariantType>({
'basis-full sm:basis-[calc((100%-16px)/2)] lg:basis-[calc((100%-16px*2)/3)]',
four: 'basis-full sm:basis-[calc((100%-16px)/2)] lg:basis-[calc((100%-16px*3)/4)]',
five: 'basis-full sm:basis-[calc((100%-16px)/2)] lg:basis-[calc((100%-16px*4)/5)]',
infinite: qtJoin(
'flex',
isRtl ? `animate-slideRtl` : `animate-slide`,
sliderClass,
),
infinite: qtJoin('flex', sliderClass),
};

return (
Expand Down

0 comments on commit 6c29590

Please sign in to comment.