Animated Testimonials

An engaging and animated testimonial component showcasing user feedback with transitions and auto-play functionality.

API

Prop NameTypeDefaultDescription
testimonialsTestimonial[][]An array of testimonial objects containing quote, name, image, and designation.
autoplaybooleanfalseWhether to cycle through testimonials automatically.
durationnumber5000Duration (in milliseconds) to wait before automatically transitioning to the next testimonial.

Testimonial Object

Each testimonial object must contain the following fields:

PropertyTypeDescription
quotestringThe testimonial text.
namestringThe name of the person or entity providing the testimonial.
designationstringThe position or role of the testimonial author (e.g., CEO, user).
imagestringURL of the image or avatar for the testimonial author.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/animated-testimonials.json"

Install Manually

You can copy and paste the following code to create this component:

AnimatedTestimonials.vue

Features

  • Animated Slides: Utilizes Motion-V to animate transitions between testimonials.
  • Auto-Play Support: Automatically transitions to the next testimonial after a specified duration.
  • Random Rotation Effects: Adds a subtle randomized rotation for each new slide.
  • Navigation Buttons: Manually cycle through testimonials using previous and next controls.
  • Responsive and Modular: Adapts well to different screen sizes, allowing easy integration into various layouts.

Credits