merIDK / Diagram types / Flowchart icons & animation
Mermaid flowchart icons & animation: example and syntax
Mermaid 11 added a long list of named shapes, icon nodes and animated edges. This example uses Iconify icon packs (mdi and logos), document and storage shapes, and edges that animate to show data moving.
Open this example in the editor
Example code
flowchart LR
user@{ icon: "mdi:account", form: "circle", label: "Customer", pos: "b" }
api@{ shape: rounded, label: "API Gateway" }
fn@{ icon: "logos:aws-lambda", form: "square", label: "Lambda" }
docs@{ shape: docs, label: "Invoices" }
db@{ shape: cyl, label: "Orders DB" }
store@{ shape: das, label: "Archive" }
user e1@--> api
api e2@==> fn
fn --> db
fn --> docs
db -.-> store
e1@{ animate: true }
e2@{ animate: true }
Result
flowchart LR
user@{ icon: "mdi:account", form: "circle", label: "Customer", pos: "b" }
api@{ shape: rounded, label: "API Gateway" }
fn@{ icon: "logos:aws-lambda", form: "square", label: "Lambda" }
docs@{ shape: docs, label: "Invoices" }
db@{ shape: cyl, label: "Orders DB" }
store@{ shape: das, label: "Archive" }
user e1@--> api
api e2@==> fn
fn --> db
fn --> docs
db -.-> store
e1@{ animate: true }
e2@{ animate: true }Syntax quick reference
- Named shape:
id@{ shape: cyl, label: "DB" }. Other shapes includedocs,das,hexanddoc. - Icon node:
id@{ icon: "logos:aws-lambda", form: "square", label: "Lambda" }. - Animated edge: name it with
a e1@--> b, then adde1@{ animate: true }. - This editor loads the
mdi:andlogos:icon packs.
How to use it
- Open the example in the editor, or paste your own Mermaid code.
- Edit the code on the left. The preview updates as you type, and errors point to the line.
- Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.