LayMeshDocs
中文

Animation manual#

Start with style and animation libraries: learn bundled libraries, sources and imports, then explore entries, parameters and composition. One .lay file is enough to begin.

Animation attaches to completed static layout. Run the first animation, then learn timing, keyframes, effects and presentation.

This manual describes current source. New offline style libraries and diagnostics require an engine build containing those changes; release notes describe published packages.

Learning path#

  1. Your first animation
  2. Steps and action parameters
  3. Custom keyframes
  4. All 97 effects
  5. Draw and reveal
  6. Presentation and multiple pages
  7. Export, compatibility and troubleshooting

Complete projects#

Combine libraries and motion in three worked projects: styled cards, artistic poster, and the recovered complex dashboard. Each includes editable source, themes and real playback.

Complete runnable example#

Full source
first.lay
page = canvas(size=(100mm,65mm), stylesheet="@laymesh/animate.css", background="#ffffff")title = page.add(text("Research results", font_size=6mm, color="#243447"), target=page.top_left, offset=(12mm,22mm))intro = page.step(name="Title entrance", hold=1s)intro.animate(title, class="animate__animated animate__fadeInUp")

Preview

Background
Preparing animation…
First
Preparing preview…
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

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

Common questions#

Explicitly import Animate.css and use both base and effect classes. Presentation waits for the first click by default; start="after-previous" begins on entry. See First animation.

Previous section links

step#

Read the chapter

Presenting a document#

Read the chapter

Exit and displacement endpoints#

Read the chapter

animate#

Read the chapter

Compatibility#

Read the chapter

Click triggers and automatic playback#

Read the chapter

Extensions#

Read the chapter

Export#

Read the chapter

Verification#

Read the chapter