diff --git a/src/index.tsx b/src/index.tsx index ed88b2c4..298eae7a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -345,6 +345,13 @@ export function generateTrigger( useLayoutEffect( (firstMount) => { if (!firstMount || mergedOpen) { + if (stretch) { + // delay setting makes it calculate + setTimeout(() => { + setInMotion(true); + }, 0); + return; + } setInMotion(true); } },