For Tailwind CSS v3 docs, click here.

Animated Testimonials

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

API

Prop 名称类型默认值描述
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:

Property类型描述
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.

通过 CLI 安装

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

手动安装

You can 复制并粘贴以下代码: to create this component:

AnimatedTestimonials.vue

功能特性

  • 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.

感谢