@remotion/transitions 4.0.63 → 4.0.65
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.
- package/dist/cjs/fade.js +3 -2
- package/dist/presentations/fade.js +3 -2
- package/package.json +4 -4
package/dist/cjs/fade.js
CHANGED
|
@@ -7,11 +7,12 @@ var react = require('react');
|
|
|
7
7
|
var remotion = require('remotion');
|
|
8
8
|
|
|
9
9
|
const FadePresentation = ({ children, presentationDirection, presentationProgress }) => {
|
|
10
|
+
const isEntering = presentationDirection === 'entering';
|
|
10
11
|
const style = react.useMemo(() => {
|
|
11
12
|
return {
|
|
12
|
-
opacity:
|
|
13
|
+
opacity: isEntering ? presentationProgress : 1,
|
|
13
14
|
};
|
|
14
|
-
}, [
|
|
15
|
+
}, [isEntering, presentationProgress]);
|
|
15
16
|
return (jsxRuntime.jsx(remotion.AbsoluteFill, { children: jsxRuntime.jsx(remotion.AbsoluteFill, { style: style, children: children }) }));
|
|
16
17
|
};
|
|
17
18
|
const fade = (props) => {
|
|
@@ -2,11 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { AbsoluteFill } from 'remotion';
|
|
4
4
|
const FadePresentation = ({ children, presentationDirection, presentationProgress }) => {
|
|
5
|
+
const isEntering = presentationDirection === 'entering';
|
|
5
6
|
const style = useMemo(() => {
|
|
6
7
|
return {
|
|
7
|
-
opacity:
|
|
8
|
+
opacity: isEntering ? presentationProgress : 1,
|
|
8
9
|
};
|
|
9
|
-
}, [
|
|
10
|
+
}, [isEntering, presentationProgress]);
|
|
10
11
|
return (_jsx(AbsoluteFill, { children: _jsx(AbsoluteFill, { style: style, children: children }) }));
|
|
11
12
|
};
|
|
12
13
|
export const fade = (props) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/transitions",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.65",
|
|
4
4
|
"description": "Transition presets for Remotion",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.
|
|
19
|
+
"remotion": "4.0.65"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@jonny/eslint-config": "3.0.276",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@vitejs/plugin-react": "^2.0.0",
|
|
32
32
|
"rollup": "^2.70.1",
|
|
33
33
|
"@rollup/plugin-typescript": "^8.2.0",
|
|
34
|
-
"remotion": "4.0.
|
|
35
|
-
"
|
|
34
|
+
"@remotion/test-utils": "4.0.65",
|
|
35
|
+
"remotion": "4.0.65"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.8.0",
|