Skip to content

Commit bba7ad0

Browse files
committed
Use opacity transition instead of display:none
1 parent 8846229 commit bba7ad0

File tree

1 file changed

+3
-1
lines changed
  • src/components/index-page/how-it-works

1 file changed

+3
-1
lines changed

src/components/index-page/how-it-works/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export function HowItWorks() {
6767
</ol>
6868
)}
6969
</div>
70-
<FigureInfo className={interacted ? "hidden" : ""} />
70+
<FigureInfo
71+
className={clsx("transition-opacity", interacted ? "opacity-0" : "")}
72+
/>
7173

7274
<Button className="mx-auto mt-8 w-fit lg:mt-16" href={TRY_IT_OUT_URL}>
7375
Try GraphiQL

0 commit comments

Comments
 (0)