Explorar el Código

spaziatura flipbook aggiustata

Sviluppo_Carrello_Immagini
Lorenzo Pollutri hace 1 mes
padre
commit
15e0a1af2e
Se han modificado 1 ficheros con 18 adiciones y 2 borrados
  1. +18
    -2
      components/PublicGrid.tsx

+ 18
- 2
components/PublicGrid.tsx Ver fichero

@@ -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}


Cargando…
Cancelar
Guardar