Skip to content

refacto(css/pulse-animation): add 'alternate' and edit keyframes #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions snippets/css/animations/pulse-animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@ title: Pulse Animation
description: Adds a smooth pulsing animation with opacity and scale effects
author: AlsoKnownAs-Ax
tags: animation,pulse,pulse-scale
contributors: alanb4rt
---

```css
.pulse {
animation: pulse 2s ease-in-out infinite;
animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
0% {
from {
opacity: 0.5;
transform: scale(1);
}
50% {
to {
opacity: 1;
transform: scale(1.05);
}
100% {
opacity: 0.5;
transform: scale(1);
}
}
```
Loading