Skip to content

Star Rating Card

A compact testimonial with animated star ratings that fill in sequentially and a subtle pulse glow.

Star Rating Card

by FreeCsStyles Dev's

TestimonialsPlayful
🌐
#rating#stars#testimonial#review

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/star-rating-card.

<iframe src="/embed/star-rating-card" sandbox="allow-scripts" loading="lazy" title="Star Rating Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Star Rating Card. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<div class="rating-card">
  <div class="rating-stars">
    <span>★</span><span>★</span><span>★</span><span>★</span><span>★</span>
  </div>
  <p class="rating-quote">"Absolutely stunning work."</p>
  <div class="rating-author">— Alex Rivera</div>
</div>
CSS
.rating-card {
  max-width: 300px;
  text-align: center;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.rating-stars span {
  font-size: 34px;
  color: #f59e0b;
  text-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
  animation: star-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rating-stars span:nth-child(2) { animation-delay: 0.15s; }
.rating-stars span:nth-child(3) { animation-delay: 0.3s; }
.rating-stars span:nth-child(4) { animation-delay: 0.45s; }
.rating-stars span:nth-child(5) { animation-delay: 0.6s; }

.rating-quote { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.rating-author { font-size: 12px; font-weight: 700; color: #fff; margin-top: 8px; }

@keyframes star-pop {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  70% { transform: scale(1.4) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

Where Star Rating Card fits

  • Reviews
  • Ratings
  • Feedback Widgets

Topics

  • #rating
  • #stars
  • #testimonial
  • #review