Skip to content

Instantly share code, notes, and snippets.

View DenghuaCN's full-sized avatar
👨‍💻
Focusing

OnlyBlue DenghuaCN

👨‍💻
Focusing
  • shen zhen
  • 03:25 (UTC +08:00)
View GitHub Profile
@DenghuaCN
DenghuaCN / finally-landingPage.jsx
Last active March 12, 2024 16:49
react-intersection-observer
import { useState } from "react";
import { useInView, InView } from "react-intersection-observer";
const sections = ["Issues", "Cycles", "Roadmaps", "Workflows"];
const menuWidths = {
Issues: {
open: "124px",
closed: "65px",
},