LayMeshDocs
中文

Catalog Animate

Full source
catalog-animate.lay
page=canvas(size=(100mm,100mm),stylesheet="@laymesh/animate.css",background="#f6f7fb")style {rect {background-color:#0d6efd;border:1px solid #20332f}text {background-color:#e9ecef;color:#212529;border:1px solid #adb5bd} }item=page.add(rect(size=(40mm,25mm),class="animate__animated animate__fadeInUp"),anchor=center,target=page.center)s=page.step(name="Preview",start="after-previous",hold=0s)s.animate(item)

Preview

Background
Preparing animation…
Catalog Animate
Preparing preview…
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/libraries/catalog-animate.lay

Reproduce

sh
laymesh validate examples/libraries/catalog-animate.laylaymesh render examples/libraries/catalog-animate.lay -o figure.svglaymesh render examples/libraries/catalog-animate.lay -o figure.pdflaymesh render examples/libraries/catalog-animate.lay -o figure.png --dpi 300