Tất cả hình nền
Mặt nước
WaterDùng trong mã React
1. Cài thư viện
npm i @udemi/hinh-nen2. Dán thành phần vào trang
import { Water } from "@udemi/hinh-nen"; export function HinhNen() { return ( <Water colorBack="#909090" colorHighlight="#ffffff" highlights={0.07} layering={0.5} edges={0.8} waves={0.3} caustic={0.1} size={1} speed={1} scale={0.8} rotation={0} offsetX={0} offsetY={0} fit="contain" image="/duong-dan/anh-cua-ban.png" style={{ width: "100%", aspectRatio: "16 / 9" }} /> ); }
Hiệu ứng dựng bằng Paper Shaders của Paper, giấy phép Apache 2.0.