Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

lb-motion-skill

bởi leonaaardob

Web & Frontend Development
1.4kLượt tải do clawskills.sh công bố
3Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion)

Mô tả

Kỹ năng này làm gì

Motion is an animation library for React, JavaScript, and Vue, evolved from Framer Motion. It provides hardware-accelerated animations with spring physics, scroll-linked effects, and gesture support. The core bundle starts at 2.3kb.

Motion replaces Framer Motion with a smaller bundle and broader framework support, including Vue and vanilla JavaScript, without sacrificing the familiar API.

Khi nào nên dùng

  • Adding scroll-triggered fade-ins to a landing page
  • Animating a React modal with spring entrance/exit
  • Dragging and dropping cards in a Kanban board
  • Creating a progress bar that tracks scroll position
  • Staggering list items on page load

Quy trình ví dụ

ĐẦU VÀO

User asks: animate a list of cards so they fade in with a stagger on load

AGENT
  1. 1

    Import motion from motion/react

  2. 2

    Wrap each card in a motion.div component

  3. 3

    Set initial opacity to 0 and animate to 1

  4. 4

    Add a stagger delay using the delay prop with stagger() helper

  5. 5

    Apply a spring or duration transition

ĐẦU RA

Each card fades in sequentially with a 0.1s stagger on page load

Cài đặt

clawhub install leonaaardob/lb-motion-skill

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết