Skip to content

Commit 66846d7

Browse files
✨ [css] Add slide-in animation
1 parent f4f888f commit 66846d7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Slide-in Animation
3+
description: Adds a slide-in from the right side of the screen
4+
author: AlsoKnownAs-Ax
5+
tags: css,animation
6+
---
7+
8+
```css
9+
.slide-in {
10+
animation: slide-in 1s ease-in-out;
11+
}
12+
13+
@keyframes slide-in {
14+
from {
15+
scale: 300% 1;
16+
translate: 150vw 0;
17+
}
18+
19+
to {
20+
scale: 100% 1;
21+
translate: 0 0;
22+
}
23+
}
24+
```

0 commit comments

Comments
 (0)