Skip to content

Decoration 3

dvk-decoration-3 recreates the animated angular line decoration from DataV Vue3 Decoration5 as a framework-agnostic Web Component. It computes the same responsive polyline points from the host width and height, then applies the original stroke dash animation pattern.

html
<dvk-decoration-3 duration="1.2"></dvk-decoration-3>

Props

NameTypeDefaultNotes
colorstringCSS variable fallbackPrimary line color.
secondary-colorstringCSS variable fallbackSecondary line color.
colorsstringemptyComma-separated primary and secondary line colors.
durationnumber1.2Stroke dash animation duration in seconds.
durnumber1.2DataV-compatible alias for duration.
animatedbooleantrueEnables stroke dash animation.
pausedbooleanfalsePauses the stroke dash animation.

Events

NameDetail
dvk-ready{ tagName }

CSS Variables

NameMeaning
--dvk-color-primaryPrimary fallback color.
--dvk-color-secondarySecondary fallback color.

Parts

PartDescription
graphicInternal SVG.
lineShared part for both polylines.
main-lineMain angular polyline.
sub-lineSecondary bottom polyline.