特效 · All You Need Is Taste · 前天
Cloth, as an Effect: one WebGL engine that hangs any picture as a sheet of cloth.
A grid of vertices (28 per side, 80 when it must twirl) is moved toward the viewer by three sine waves — one long wave along the width and two cross waves that a `stiff` sheet drops — held still at a pinned edge (left like a flag on a pole, top like a banner on a rail, or none), shaded by its own folds and seen through a 45° perspective. The pointer raises a ripple where it passes; a tap pokes one. Three opt-in extras are the forms our landings gave it: a twirl (the tips of a long banner curl up in spirals when the hand comes near or presses), an unroll (a strip pinned left comes out to `reveal` with a frayed edge and a rolled end, tiled along its length, sagging and snaking), and a box callback that places the sheet yourself. Our landings already wear it fifteen ways: Vroeg's bidder banners and ribbon, Tamarro's leopard car-park flags, price tag and assembly manual, Cent Moustaches' velvet standard, toile and wax label, Unclaimable's mummy bandage, museum flag and claim tag, Pennichelli's car cover, speeding ticket and picnic blanket.
适合你吗?
适合
- 像旗帜、横幅或船帆一样悬挂的首屏图片
- 想要柔软、飘动表面的纺织、时装或节庆品牌
- 要让人觉得被触摸、而不只是被滚动的海报或照片
不适合
- 性能较弱的手机:WebGL 波动每一帧都在运行
- 图片很多的页面:每张都需要自己的 canvas













