浏览代码

spaziatura flipbook aggiustata

Sviluppo_Carrello_Immagini
Lorenzo Pollutri 1 个月前
父节点
当前提交
15e0a1af2e
共有 1 个文件被更改,包括 18 次插入2 次删除
  1. +18
    -2
      components/PublicGrid.tsx

+ 18
- 2
components/PublicGrid.tsx 查看文件

@@ -520,8 +520,24 @@ function FlipBook({ pages, onClose }: { pages: string[]; onClose: () => void })
>✕</button>

<style dangerouslySetInnerHTML={{ __html: `
.stf__item.--left { box-shadow: inset -10px 0 16px -10px rgba(0,0,0,0.5); }
.stf__item.--right { box-shadow: inset 10px 0 16px -10px rgba(0,0,0,0.5); }
.stf__item.--left::after,
.stf__item.--right::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 28px;
pointer-events: none;
z-index: 2;
}
.stf__item.--left::after {
right: 0;
background: linear-gradient(to left, rgba(0,0,0,0.45), transparent);
}
.stf__item.--right::after {
left: 0;
background: linear-gradient(to right, rgba(0,0,0,0.45), transparent);
}
`}} />
<div
ref={containerRef}


正在加载...
取消
保存