page-transition 0.1.0-beta.26 → 0.1.0-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ export function transtionEndReverse({ transitionEndObj, transitionEndHandler, re
|
|
|
5
5
|
transitionEndHandler.current.handlerEl)
|
|
6
6
|
transitionEndHandler.current.handlerEl.removeEventListener('transitionend', transitionEndHandler.current.handler);
|
|
7
7
|
const endObj = transitionEndObj.current;
|
|
8
|
+
console.log('transitionEndReverse setDelayReverse');
|
|
8
9
|
setDelayReverse({
|
|
9
10
|
elArray: endObj.elArray,
|
|
10
11
|
transitionProperty: endObj.transitionProperty,
|
|
@@ -19,6 +20,7 @@ export function transtionEndReverse({ transitionEndObj, transitionEndHandler, re
|
|
|
19
20
|
}
|
|
20
21
|
const firstEl = endObj.elArray[0];
|
|
21
22
|
const handler = (e) => {
|
|
23
|
+
console.log('transitionEndReverse handler fired');
|
|
22
24
|
if (e.propertyName !== endObj.transitionProperty ||
|
|
23
25
|
e.target !== e.currentTarget)
|
|
24
26
|
return;
|
|
@@ -5,6 +5,7 @@ import { transitionEnd } from "../functions/transitionEnd";
|
|
|
5
5
|
import { pollTransitionStart } from "../functions/pollTransitionStart";
|
|
6
6
|
import { updatePlaybackRate } from "../functions/updatePlaybackRate";
|
|
7
7
|
import { setPlaybackRate } from "../functions/setPlaybackRate";
|
|
8
|
+
import { parseFirstOpacity } from "../functions/parseFirstOpacity";
|
|
8
9
|
export function usePopState({ container, currentPathname, transitionEndData, transitionEndHandler, reverse, delayStep, state, useUse, resolveUseFn, pollRafId, rafId, rejectFn }) {
|
|
9
10
|
const [promise, setPromise] = useState(null);
|
|
10
11
|
if (promise) {
|
|
@@ -123,6 +124,7 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
|
|
|
123
124
|
container.current?.classList.remove('enter');
|
|
124
125
|
container.current?.classList.add('exit');
|
|
125
126
|
console.log('classList done');
|
|
127
|
+
console.log(parseFirstOpacity(elArray), 'true > 0, false <=0');
|
|
126
128
|
state.current = 'exiting';
|
|
127
129
|
setPlaybackRate({
|
|
128
130
|
elArray,
|