Changelog
[3.0.0] 2020-12-16
whileDrag
userSelect
css to draggable elements.whileHover
, whileTap
and exit
all now accept variant lists.animate
, whileHover
, exit
etc). The value will be searched for in active props of a lower priority running (style
<- animate
<- whileHover
<- whileTap
<- whileDrag
<- exit
). This may introduce subtle behavioural changes, hence the major.useInvertedScale
hook. Use the layout
prop instead.yoyo
, flip
and loop
options. Use repeat
and repeatType
options instead.transform
on SVG elements.MotionValue
s, for increased startup performance.drag
components and nested AnimateSharedLayout
trees.treeScale
.Changelog
[2.0.0] 2020-07-15
layout
prop for automatic layout animations.AnimateSharedLayout
and layoutId
for shared layout animations.onMeasureDragConstraints
prop that fires when dragConstraints
are measured.useIsPresent
, a read-only version of usePresence
.dragConstraints
to be a ref that is smaller than the draggable element.positionTransition
and layoutTransition
props (use layout={true}
instead).Point
type in favour of Point2D
.useAnimatedState
: Moved to Framer library.dragOriginX
, dragOriginY
props.stylefire
as a dependency.MotionValue
from style
now correctly unsets it from the element.Proxy
to generate motion
components. This saves ~0.5kb from the bundle size and ensures compatibility with all DOM elements and Web Components.x
and y
transform values won't change as a result of a drag gesture as this now works via layout projection.point
as the pointer relative to the viewport, in line with other pointer events.Changelog
[1.4.2] 2019-07-31
positionTransition
on exiting components within AnimatePresence
.Changelog
[1.4.0] 2019-07-29
AnimatePresence.exitBeforeEnter
.AnimatePresence
.tslib
as an external dependency.onAnimationComplete
.