File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ const ScrollingHeader = ({
31
31
invisibleFirstElements . forEach ( ( element : Element ) => {
32
32
if ( element instanceof HTMLElement ) {
33
33
if ( isScrolled2 ) {
34
- element . style . opacity = "1" ;
34
+ element . classList . remove ( " opacity-0" ) ;
35
35
} else {
36
- element . style . opacity = "0" ;
36
+ element . classList . add ( "opacity-0" ) ;
37
37
}
38
38
}
39
39
} ) ;
Original file line number Diff line number Diff line change @@ -117,16 +117,10 @@ export default function Home({
117
117
< Header />
118
118
< ScrollingHeader showItemY = { logoY } >
119
119
< div className = "flex h-full w-full items-center gap-10 px-4" >
120
- < div
121
- style = { { opacity : 0 } }
122
- className = "invisibleFirst hidden h-[24px] w-[96px] transition-all duration-500 ease-out md:block"
123
- >
120
+ < div className = "invisibleFirst hidden h-[24px] w-[96px] opacity-0 transition-all duration-500 ease-out md:block" >
124
121
< Logo className = "h-[24px] w-[96px]" />
125
122
</ div >
126
- < div
127
- style = { { opacity : 0 } }
128
- className = "invisibleFirst hidden flex-row justify-start gap-6 transition-all duration-500 ease-out lg:flex"
129
- >
123
+ < div className = "invisibleFirst hidden flex-row justify-start gap-6 opacity-0 transition-all duration-500 ease-out lg:flex" >
130
124
< P size = "xs" >
131
125
< A variant = "tertiary" href = "#sectionProduct" >
132
126
The product
@@ -137,11 +131,6 @@ export default function Home({
137
131
Price plans
138
132
</ A >
139
133
</ P >
140
- { /* <P size="xs">
141
- <A variant="tertiary" href="#section3">
142
- Testimonials
143
- </A>
144
- </P> */ }
145
134
</ div >
146
135
< div className = "flex-grow" />
147
136
< Button . List >
You can’t perform that action at this time.
0 commit comments