A Vue component that creates an expandable card with smooth animations.




| Prop | Type | Default | Description |
|---|---|---|---|
cardInfo | Object | required | Object containing card information (title, description, image source, CTA text). |
buttonClass | String | null | Custom CSS class for the CTA button. |
backgroundClass | String | null | Custom CSS class for the card background. |
| Slot | Description |
|---|---|
default | Default slot for custom content. |
| Event | Description |
|---|---|
handleClick | Emitted when the CTA button is clicked while the card is expanded. |
You can customize the ExpandableCard component:
cardInfo prop to change the card's content, image, and CTA text.buttonClass prop to add custom styling to the CTA button.backgroundClass prop to customize the card's background appearance.handleClick event.The ExpandableCard component uses GSAP and Flip for animations. Ensure that you have these libraries installed and imported in your project for the animations to work correctly.