Elysia Tools
导航
Media
SVG示例
可缩放矢量图形(SVG)示例,展示各种SVG功能和技术
案例
这个案例集合中的条目
基础SVG形状
基础SVG形状演示,包含矩形、圆形、椭圆、线条、折线和多边形元素
难度
1/10
预计时间
5 min
标签
beginner, basic-shapes, geometric
- elements
- ["rect","circle","ellipse","line","polyline","polygon","text"]
- features
- ["Basic shapes","Stroke and fill","Text labels"]
- complexity
- beginner
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
描边和填充属性
SVG描边和填充属性演示,展示各种线条样式和图案
难度
2/10
预计时间
10 min
标签
beginner, styling, appearance
- elements
- ["rect","circle","path","line"]
- features
- ["Stroke styles","Fill patterns","Dash arrays","Line caps"]
- complexity
- beginner
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- false
SVG变换
SVG变换示例,包括平移、旋转、缩放和倾斜操作
难度
4/10
预计时间
15 min
标签
intermediate, transformation, positioning
- elements
- ["rect","circle","g","transform"]
- features
- ["Translation","Rotation","Scaling","Skewing","Matrix transforms"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
SVG渐变
线性和径向渐变演示,包含多个颜色停止点和效果
难度
3/10
预计时间
12 min
标签
intermediate, colors, visual-effects
- elements
- ["rect","circle","linearGradient","radialGradient","stop"]
- features
- ["Linear gradients","Radial gradients","Color stops","Gradient fills"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- true
- hasFilters
- false
- hasText
- true
SVG图案
SVG图案定义和应用,用于创建重复背景和纹理
难度
5/10
预计时间
18 min
标签
intermediate, design, repeating
- elements
- ["rect","pattern","circle","path","polygon"]
- features
- ["Pattern fills","Repeating patterns","Custom textures","Pattern transforms"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
SVG标记
SVG标记元素,用于在路径和线条上创建自定义箭头和端点
难度
4/10
预计时间
15 min
标签
intermediate, decoration, paths
- elements
- ["path","line","polyline","marker","defs"]
- features
- ["Custom markers","Arrowheads","Path endpoints","Marker positioning"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
路径文字
沿SVG路径定位的文本,包含各种文本效果和样式选项
难度
5/10
预计时间
20 min
标签
intermediate, text, typography
- elements
- ["text","textPath","path","defs"]
- features
- ["Text on path","Path text alignment","Text spacing","Text effects"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
裁剪和遮罩
裁剪和遮罩演示,用于创建复杂形状和效果
难度
7/10
预计时间
25 min
标签
advanced, masking, shapes
- elements
- ["rect","circle","clipPath","mask","image","g"]
- features
- ["Clipping paths","Masks","Alpha masks","Complex shapes"]
- complexity
- advanced
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
SVG滤镜
SVG滤镜效果,包括模糊、阴影、颜色处理和视觉效果
难度
8/10
预计时间
30 min
标签
advanced, visual-effects, filters
- elements
- ["rect","circle","filter","feGaussianBlur","feDropShadow","feColorMatrix","image"]
- features
- ["Gaussian blur","Drop shadows","Color manipulation","Filter chaining"]
- complexity
- advanced
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- true
- hasText
- true
SVG动画
SMIL动画演示,包含颜色变化、变换和运动效果
难度
9/10
预计时间
35 min
标签
advanced, animation, interactive
- elements
- ["circle","rect","animate","animateTransform","text"]
- features
- ["SMIL animation","Color animation","Transform animation","Motion paths"]
- complexity
- advanced
- viewBox
- 0 0 360 240
- hasAnimation
- true
- hasGradients
- false
- hasFilters
- false
- hasText
- true
响应式SVG设计
响应式SVG设计技术,包含自适应布局和缩放行为
难度
6/10
预计时间
20 min
标签
intermediate, responsive, layout
- elements
- ["svg","g","rect","circle","text","symbol","use"]
- features
- ["Responsive design","Adaptive layouts","Scaling behavior","ViewBox management"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
SVG符号和重用
SVG符号和可重用元素,使用use元素实现高效图形
难度
5/10
预计时间
18 min
标签
intermediate, architecture, efficiency
- elements
- ["symbol","use","defs","g","rect","circle","path"]
- features
- ["Reusable symbols","Use element","Symbol instances","Graphic libraries"]
- complexity
- intermediate
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
ForeignObject集成
使用foreignObject在SVG中集成HTML内容,实现混合内容
难度
10/10
预计时间
40 min
标签
advanced, integration, html
- elements
- ["foreignObject","div","p","style","rect","text"]
- features
- ["HTML integration","ForeignObject","Mixed content","Styling integration"]
- complexity
- advanced
- viewBox
- 0 0 360 240
- hasAnimation
- false
- hasGradients
- false
- hasFilters
- false
- hasText
- true
工具
经常与该案例搭配使用的工具
相关内容