design-systems: add 74 brand DESIGN.md files (VoltAgent/awesome-design-md)
- 74 brands: airbnb, stripe, apple, figma, linear, vercel, etc. - 147 files: DESIGN.md + README.md per brand (~2.1 MB) - Each DESIGN.md contains structured brand analysis (colors, typography, components) - Updated 00-overview.md with new design-systems directory
This commit is contained in:
1 parent
e3738f2b3e
commit
76c4c5b4fe
233 files changed
+54886
-1
No files matched your search
@@ -0,0 +1,57 @@
|
||||
---
|
||||
name: media/svg-animation
|
||||
title: SVG Animation & Icon Motion
|
||||
description: Animated SVG icons, paths, and illustrations.
|
||||
tags: [media, svg, animation, icon, motion]
|
||||
source: raycast.com, linear.app, brad.co, amppz.com
|
||||
---
|
||||
|
||||
# SVG Animation
|
||||
|
||||
## 1. Path Draw Animation
|
||||
|
||||
```html
|
||||
<svg class="icon-animated" viewBox="0 0 24 24" width="48" height="48">
|
||||
<path class="icon-path" d="M5 13l4 4L19 7" fill="none" stroke="#6366f1" stroke-width="2"/>
|
||||
</svg>
|
||||
```
|
||||
|
||||
```css
|
||||
.icon-path {
|
||||
stroke-dasharray: 30;
|
||||
stroke-dashoffset: 30;
|
||||
animation: draw 0.5s ease forwards;
|
||||
}
|
||||
@keyframes draw {
|
||||
to { stroke-dashoffset: 0; }
|
||||
}
|
||||
```
|
||||
|
||||
## 2. Morphing SVG
|
||||
|
||||
```html
|
||||
<svg class="morph-svg" viewBox="0 0 100 100">
|
||||
<circle cx="50" cy="50" r="40" fill="#6366f1">
|
||||
<animate attributeName="r" values="40;50;40" dur="3s" repeatCount="indefinite"/>
|
||||
</circle>
|
||||
</svg>
|
||||
```
|
||||
|
||||
## 3. Icon Hover
|
||||
|
||||
```css
|
||||
.icon {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
.icon:hover {
|
||||
transform: scale(1.2) rotate(10deg);
|
||||
}
|
||||
```
|
||||
|
||||
## Anti-patterns
|
||||
|
||||
| ❌ Плохо | ✅ Хорошо |
|
||||
|----------|-----------|
|
||||
| Без viewBox | Всегда viewBox |
|
||||
| Без `stroke-dashoffset` | Использовать для path |
|
||||
| 500ms+ анимация | 0.3–0.5s |
|
||||
Reference in new issue
Block a user