changed the text position using gsap now
Browse files
Remotion-app/src/HelloWorld/TextStream.jsx
CHANGED
@@ -68,11 +68,18 @@ export function Letter({children, style,duration}) {
|
|
68 |
|
69 |
const Textimeline =()=>{
|
70 |
let timeline=gsap.timeline();
|
71 |
-
timeline.fromTo('#letter',{yPercent:100},{yPercent:0,duration:duration
|
72 |
return timeline
|
73 |
}
|
74 |
|
75 |
-
return <GsapAnimation Timeline={Textimeline} className='h-fit' style={
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
|
78 |
<div id="letter">
|
|
|
68 |
|
69 |
const Textimeline =()=>{
|
70 |
let timeline=gsap.timeline();
|
71 |
+
timeline.fromTo('#letter',{yPercent:100},{yPercent:0,duration:duration, ease:"power2.inOut"})
|
72 |
return timeline
|
73 |
}
|
74 |
|
75 |
+
return <GsapAnimation Timeline={Textimeline} className='h-fit' style={{
|
76 |
+
|
77 |
+
backgroundColor: 'transparent',
|
78 |
+
justifyContent: 'center',
|
79 |
+
alignItems: 'center',
|
80 |
+
position: 'relative',
|
81 |
+
...style,
|
82 |
+
}}>
|
83 |
|
84 |
|
85 |
<div id="letter">
|