Skip to content

feat: add color-blink animation#1860

Open
vedant10304 wants to merge 1 commit intoanimate-css:mainfrom
vedant10304:add-color-blink-animation
Open

feat: add color-blink animation#1860
vedant10304 wants to merge 1 commit intoanimate-css:mainfrom
vedant10304:add-color-blink-animation

Conversation

@vedant10304
Copy link

Description

This PR introduces a new animation called color-blink that changes the text color between red and yellow in a continuous loop. It's a lightweight effect useful for drawing attention to important text such as alerts, warnings, or promotional content.

Animation Details

@keyframes color-blink {
  0% { color: red; }
  50% { color: yellow; }
  100% { color: red; }
}

.color-blink {
  animation-name: color-blink;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

@vedant10304
Copy link
Author

Hi maintainers 👋

I’ve added a new animation called color-blink that loops the text color between red and yellow. It’s intended to help draw attention to text in a subtle way. Please feel free to suggest any changes or improvements.

Looking forward to your feedback. Thank you! 🙌

@AzzaAzza69
Copy link

I would suggest these tweaks:

.color-blink{
  --color-1: red;
  --color-2: yellow;
  ...
}

@keyframes color-blink {
  0% { color: var(--color-1); }
  50% { color: var(--color-2); }
  100% { color: var(--color-1); }
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants