Tất cả hình nền
Chuyển màu lưới
Mesh GradientDù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 { MeshGradient } from "@udemi/hinh-nen"; export function HinhNen() { return ( <MeshGradient colors={["#e0eaff", "#241d9a", "#f75092", "#9f50d3"]} distortion={0.8} swirl={0.1} grainMixer={0} grainOverlay={0} speed={1} scale={1} rotation={0} offsetX={0} offsetY={0} 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.