首页 置顶新闻

首页 置顶新闻根据滚动状态添加蒙版
This commit is contained in:
amypeng 2026-06-10 14:10:22 +08:00
parent f34f7613d7
commit e61c9e1a99
1 changed files with 4 additions and 2 deletions

View File

@ -214,8 +214,10 @@ function News(props) {
<div style={{
overflow: 'hidden',
height: '593px',
WebkitMaskImage: 'linear-gradient(to bottom, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%)',
maskImage: 'linear-gradient(to bottom, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%)'
...(hasAppended ? {
WebkitMaskImage: 'linear-gradient(to bottom, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%)',
maskImage: 'linear-gradient(to bottom, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%)'
} : {})
}}>
<div className='topBox' ref={topBoxRef}>
{docListBySecondDir.map((item, index)=>{