We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2185c8 + ede6993 commit 5f8144fCopy full SHA for 5f8144f
src/MotionThumb.tsx
@@ -116,7 +116,7 @@ export default function MotionThumb(props: MotionThumbInterface) {
116
width: `var(--thumb-active-width)`,
117
};
118
119
- const onAppearEnd = () => {
+ const onVisibleChanged = () => {
120
setPrevStyle(null);
121
setNextStyle(null);
122
onMotionEnd();
@@ -135,7 +135,7 @@ export default function MotionThumb(props: MotionThumbInterface) {
135
motionAppear
136
onAppearStart={onAppearStart}
137
onAppearActive={onAppearActive}
138
- onAppearEnd={onAppearEnd}
+ onVisibleChanged={onVisibleChanged}
139
>
140
{({ className: motionClassName, style: motionStyle }, ref) => {
141
const mergedStyle = {
0 commit comments