We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当元素处于吸顶状态,会处理一些样式或逻辑,这种场景还是很多的; 类似这种
const isFixed = useStickyFixed({ref:domRef});
The text was updated successfully, but these errors were encountered:
emm,这个咋判断。。。 吸顶一般不都得自己写么
Sorry, something went wrong.
就是已经设置 position: sticky 元素,在外部滚动时,来判断当前设置粘性定位的元素是否处于吸顶的状态
目前感觉用的场景不是特别多,先挂一阵子看看有没有人也有类似的需求
https://github.com/robinjonsson/react-use-sticky
场景: sticky 生效的时候加 style/className
No branches or pull requests
当元素处于吸顶状态,会处理一些样式或逻辑,这种场景还是很多的;
类似这种
The text was updated successfully, but these errors were encountered: