Skip to content
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