-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(template): add template cinema for LyonJS 100 (#1267)
- Loading branch information
Showing
18 changed files
with
28,835 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
remotion/compositions/showcases/lyonJS/LyonJS100/AnimatedScene.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import React, {PropsWithChildren} from 'react'; | ||
import Image from 'next/image'; | ||
import { | ||
AbsoluteFill, | ||
Audio, | ||
Easing, | ||
Img, | ||
interpolate, | ||
Sequence, | ||
staticFile, | ||
useCurrentFrame, | ||
} from 'remotion'; | ||
import {z} from 'zod'; | ||
|
||
import {BackgroundTriangle} from '../../../../design/atoms/BackgroundTriangle'; | ||
import {SpeakerSchema} from '../../showcases.types'; | ||
import {BigSpeakers} from '../BigSpeakers'; | ||
import {Details} from '../Details'; | ||
import {Logo} from '../Logo'; | ||
import {LogoSponsor} from '../LogoSponsor'; | ||
import {TalkTitle} from '../TalkTitle'; | ||
|
||
import {Cinema} from './Scene/Cinema'; | ||
|
||
export const AnimatedScene: React.FC<PropsWithChildren> = ({children}) => { | ||
const frame = useCurrentFrame(); | ||
|
||
const opacityDown = interpolate(frame, [120, 160], [0.05, 0], { | ||
extrapolateRight: 'clamp', | ||
easing: Easing.out(Easing.ease), | ||
}); | ||
|
||
return ( | ||
<AbsoluteFill | ||
style={{ | ||
backgroundColor: '#00030a', | ||
display: 'flex', | ||
justifyContent: 'flex-start', | ||
alignItems: 'center', | ||
top: 120, | ||
}} | ||
> | ||
<Cinema /> | ||
<div | ||
style={{ | ||
position: 'absolute', | ||
top: 115, | ||
left: 270, | ||
width: '1400px', | ||
height: '630px', | ||
overflow: 'hidden', | ||
}} | ||
> | ||
<div | ||
style={{ | ||
position: 'relative', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
> | ||
<Img | ||
src={staticFile('/images/showcases/lyonjs/LyonJS100.png')} | ||
style={{ | ||
opacity: opacityDown, | ||
position: 'absolute', | ||
top: 60, | ||
margin: 'auto', | ||
width: '55%', | ||
filter: 'grayscale(100%)', | ||
}} | ||
/> | ||
{children} | ||
</div> | ||
</div> | ||
</AbsoluteFill> | ||
); | ||
}; |
Oops, something went wrong.