LayMeshDocs
中文

Keyframes

Full source
keyframes.lay
page = canvas(size=(100mm,60mm), stylesheet="keyframes.lcss", background="#ffffff")card = page.add(rect(size=(25mm,20mm), fill="#0d6efd", border_radius=2mm), target=page.top_left, offset=(12mm,20mm))s = page.step(name="Custom keyframes", start="after-previous", hold=1s)s.animate(card, class="motion")

Preview

Background
Preparing animation…
Keyframes
Preparing preview…
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/animation/keyframes.lay
  • examples/animation/keyframes.lcss

Reproduce

sh
laymesh validate examples/animation/keyframes.laylaymesh render examples/animation/keyframes.lay -o figure.svglaymesh render examples/animation/keyframes.lay -o figure.pdflaymesh render examples/animation/keyframes.lay -o figure.png --dpi 300