Second
page = canvas(size=(100mm, 100mm), stylesheet="motion.lcss", background="#eef5f2")title = page.add(text("第二页 · Page 2", font_size=20pt), offset=(12mm, 18mm))card = page.add(rect(size=(55mm, 40mm), fill="#2e8b69", border_color="none"), offset=(20mm, 40mm))s1 = page.step(name="区域揭示 · Reveal", hold=1s)s1.animate(title, class="animate__animated animate__fadeIn")s1.animate(card, class="reveal-motion", delay=200ms)/* Original Animate.css 4.1.1, imported without rewriting. */@import "@laymesh/animate.css";.title-motion { --animate-duration: 800ms; }.draw-motion { animation: laymesh-draw 1200ms ease both; }.reveal-motion { animation: laymesh-reveal 1s ease both; }Preview
Background
Preparing animation…
Dependencies
examples/animation/motion.lcssexamples/animation/second.lay
Reproduce
laymesh validate examples/animation/second.laylaymesh render examples/animation/second.lay -o figure.svglaymesh render examples/animation/second.lay -o figure.pdflaymesh render examples/animation/second.lay -o figure.png --dpi 300