motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.66k stars 842 forks source link

[BUG] `motion/mini` doesn't exist but there's an `animateMini` in `motion` #2865

Closed brandonpittman closed 1 week ago

brandonpittman commented 1 week ago

Docs say to use import {animate} from "motion/mini" but it doesn't exist.

import {animateMini} from "motion" does.

mattgperry commented 1 week ago

Can you check 11.11.15 to see if this fixes it for you?

litingyes commented 1 week ago

Can you check 11.11.15 to see if this fixes it for you?

cann't find the type file

Screenshot 2024-11-13 at 22 45 51 Screenshot 2024-11-13 at 22 46 12
pleskac commented 1 week ago

The type file isn't found as mentioned above on 11.11.15 and the types are actually incorrect. I don't believe x/y/z are valid keyframes anymore after moving away from the css var implementation? They don't work in practice but I believe the types are just shared with framer-motion.

Edit: something like this perhaps? https://github.com/pleskac/motion/commit/fe176c37b6907ada998e4bf01af919291557022e

brandonpittman commented 1 week ago

Working as expected!