frommainland / framer30days

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

documentation of learning framer motion

7.30

animatepresence start
no workaround on transform inline style

7.31

ternary within ternary
i > 5 ? (i > 8 ? "OrangeRed" : "Orange") : "LimeGreen"
dynamic margin within loop
let margin = i < 9 ? 4 : 0

divs with div start from bottom
display: 'inline-flex', justifyContent: 'flex-end', flexDirection: 'column-reverse'

8.1

animatepresence only works when the elements inside animatepresence component are added or removed from the DOM.

any animatepresence component needs key value
add position:absolute to keep it center without showing both elements animating together in left and right

8.2

color could be animatable only when its two values are in same format, color name to color name, hex to hex, 'bisque' to '#0066FF' won't work and vice versa.

8.3

Unhandled Rejection (TypeError): input.match is not a function component Cycle03 after the first click fails

variants in useCycle syntax

8.13

useAnimation case was working after update framer-motion to latest 2.4.1 from 2.0.0

8.16

keyframe times prop needs to be the same with animate prop, otherwise, it will only animate the lesser.

8.18

About

License:BSD Zero Clause License


Languages

Language:JavaScript 74.2%Language:CSS 23.9%Language:TypeScript 1.9%