Skip to content

feat: Add React Badge Notification Pulse Indicator (#28024)#39348

Closed
realtushartyagi wants to merge 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/react-badge-pulse-realtushartyagi-28024
Closed

feat: Add React Badge Notification Pulse Indicator (#28024)#39348
realtushartyagi wants to merge 2 commits into
SAPTARSHI-coder:mainfrom
realtushartyagi:feature/react-badge-pulse-realtushartyagi-28024

Conversation

@realtushartyagi

Copy link
Copy Markdown
Contributor

Pull Request Description

Adds a new React Component: Badge Notification Pulse Indicator.
This submission provides a lightweight, highly reusable React wrapper component designed to attach an attention-grabbing, pulsing status badge to any target element (like an inbox icon or avatar). The component accepts a color prop natively in React and securely injects it into an inline CSS variable (--badge-pulse-color). The HTML structure splits the badge into two semantic spans: a static outer dot, and an inner pulse ring (.ease-badge-pulse-ring) which executes an infinite, hardware-accelerated transform: scale() fading loop via pure CSS. This guarantees buttery smooth 60fps animations without relying on heavy JavaScript timers.

Fixes #28024
Fixes #27356


Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Submission Checklist

⚠️ PRs that fail this checklist will be closed without review.

  • All changes are inside submissions/react/react-badge-notification-pulse-indicator-realtushartyagi-28024/
  • Includes demo.html(N/A: React Component Submission)
  • Includes style.css(N/A: Uses component-scoped .css instead)
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/
  • One feature per PR (no bundled unrelated changes)

Feature Description

What does this add?

A highly reusable React wrapper component that renders a classic "Notification Dot" featuring a pure CSS, infinitely looping scale-and-fade keyframe pulse animation.

How does a developer use it?

import React, { useState } from 'react';
import BadgeNotification from './components/BadgeNotification';

const App = () => {
  const [hasUnread, setHasUnread] = useState(true);

  return (
    <div style={{ padding: '4rem', display: 'flex', gap: '2rem' }}>
      
      {/* Example 1: Standard Red Alert on a generic div/icon */}
      <BadgeNotification active={hasUnread} ariaLabel="3 unread messages">
        <div style={{ padding: '12px', backgroundColor: '#e2e8f0', borderRadius: '8px' }}>
          Inbox 📬
        </div>
      </BadgeNotification>

      {/* Example 2: Green Live Status Indicator */}
      <BadgeNotification active={true} color="#22c55e" ariaLabel="System Operational">
        <div style={{ padding: '12px', backgroundColor: '#e2e8f0', borderRadius: '8px' }}>
          Server 🟢
        </div>
      </BadgeNotification>
      
    </div>
  );
};

export default App;

Copilot AI review requested due to automatic review settings July 8, 2026 18:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added animation Animation effects, hover interactions, motion ideas, transitions ECSoC26 good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions help wanted Extra attention needed level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jul 8, 2026
@SAPTARSHI-coder

Copy link
Copy Markdown
Owner

✅ React/SCSS Submission Validated!

Great work @realtushartyagi! 🎉 Your react submission passed all quality checks.

⚛️ Folder: submissions/react/react-badge-notification-pulse-indicator-realtushartyagi-28024

  • ✅ React component file (.jsx/.tsx)
  • ✅ README.md
  • ✅ CSS/SCSS stylesheet

🚀 What happens next?

  • A maintainer will review your React component
  • Respond promptly to any feedback
  • Once approved, it will be merged into main!

Thank you for contributing to EaseMotion CSS! ⚡

@SAPTARSHI-coder SAPTARSHI-coder added the react React integration features and components label Jul 8, 2026
@SAPTARSHI-coder

Copy link
Copy Markdown
Owner

✅ React/SCSS Submission Validated!

Great work @realtushartyagi! 🎉 Your react submission passed all quality checks.

⚛️ Folder: submissions/react/react-badge-notification-pulse-indicator-realtushartyagi-28024

  • ✅ React component file (.jsx/.tsx)
  • ✅ README.md
  • ✅ CSS/SCSS stylesheet

🚀 What happens next?

  • A maintainer will review your React component
  • Respond promptly to any feedback
  • Once approved, it will be merged into main!

Thank you for contributing to EaseMotion CSS! ⚡

@SAPTARSHI-coder

Copy link
Copy Markdown
Owner

🔒 Pull Request Closed: Stale/Duplicate Submission 🔒

Hi @realtushartyagi! 👋

This pull request has been closed because the linked issue (#28024) is already resolved and closed. Another contributor's pull request was accepted and merged for this task first. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

animation Animation effects, hover interactions, motion ideas, transitions ECSoC26 good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions gssoc:invalid GSSoC-26 Official GSSoC 2026 issue help wanted Extra attention needed level:intermediate Requires moderate project understanding react React integration features and components type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

React Component: Badge Notification Pulse Indicator #28024 [Feature]: Add Neon Hover Effect Utility Classes

3 participants