流程图大屏解决方案
背景:
需求:
[流程图和大屏效果示意图]
解决方案:
使用 svg 来实现流程图。
优点:
示例代码:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Animated SVG Curve</title> <style> @keyframes dash { to { stroke-dashoffset: -100%; } } .path { stroke: rgb(247, 24, 8); stroke-width: 4; fill: none; stroke-dasharray: 8; animation: dash 10s linear infinite; } </style> </head> <body> <svg width="600" height="400" viewBox="0 0 600 400"> <path class="path" d="M50,150 C150,100 350,500 1550,200" /> </svg> </body> </html>