Untitled

 avatar
unknown
plain_text
4 months ago
2.8 kB
4
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    .rating-container {
      display: inline-flex;
      align-items: center;
      background-color: #FFFBF0;
      border: 1px solid #FFEDD5;
      border-radius: 5px;
      padding: 6px 12px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      white-space: nowrap;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: box-shadow 0.3s ease;
    }
    
    .rating-container:hover {
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .stars {
      color: #FFC107;
      display: flex;
      margin-right: 6px;
    }
    
    .star {
      font-size: 16px;
      margin-right: 2px;
      animation: star-pulse 2s infinite;
    }
    
    .star:nth-child(1) { animation-delay: 0s; }
    .star:nth-child(2) { animation-delay: 0.2s; }
    .star:nth-child(3) { animation-delay: 0.4s; }
    .star:nth-child(4) { animation-delay: 0.6s; }
    .star:nth-child(5) { animation-delay: 0.8s; }
    
    @keyframes star-pulse {
      0% { transform: scale(1); }
      25% { transform: scale(1.2); }
      50% { transform: scale(1); }
      100% { transform: scale(1); }
    }
    
    @keyframes star-twinkle {
      0% { opacity: 1; }
      50% { opacity: 0.5; }
      100% { opacity: 1; }
    }
    
    .score {
      font-weight: 600;
      font-size: 14px;
      margin-right: 2px;
    }
    
    .max-score {
      color: #666;
      font-size: 14px;
      margin-right: 4px;
    }
    
    .separator {
      margin: 0 4px;
      color: #888;
      font-size: 14px;
    }
    
    .rated-text {
      margin-right: 3px;
      color: #444;
      font-size: 14px;
    }
    
    .excellent {
      font-weight: 700;
      color: #000;
      font-size: 14px;
    }
    
    /* Animation for the entire container */
    @keyframes appear {
      0% { opacity: 0; transform: translateY(10px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    
    .rating-container {
      animation: appear 0.5s forwards;
    }
  </style>
</head>
<body>
  <div class="rating-container">
    <div class="stars">
      <span class="star">★</span>
      <span class="star">★</span>
      <span class="star">★</span>
      <span class="star">★</span>
      <span class="star">★</span>
    </div>
    <span class="score">4.9</span>
    <span class="max-score">/5.0</span>
    <span class="separator">|</span>
    <span class="rated-text">Rated</span>
    <span class="excellent">Excellent</span>
  </div>
</body>
</html>
Editor is loading...
Leave a Comment