NTRCN
import { NeatConfig, NeatGradient } from "@firecms/neat"; // Define your config export const config: NeatConfig = { "colors": [ { "color": "#FF5772", "enabled": true }, { "color": "#4CB4BB", "enabled": true }, { "color": "#FFC600", "enabled": true }, { "color": "#8B6AE6", "enabled": true }, { "color": "#2E0EC7", "enabled": true } ], "speed": 4, "horizontalPressure": 3, "verticalPressure": 4, "waveFrequencyX": 3, "waveFrequencyY": 3, "waveAmplitude": 8, "shadows": 1, "highlights": 5, "colorBrightness": 1, "colorSaturation": 7, "wireframe": false, "colorBlending": 8, "backgroundColor": "#003FFF", "backgroundAlpha": 1, "grainScale": 3, "grainIntensity": 0.3, "grainSpeed": 1, "resolution": 1 }; // define an element with id="gradient" in your html const neat = new NeatGradient({ ref: document.getElementById("gradient"), ...config }); // you can change the config at any time neat.speed = 6; // you can also destroy the gradient for cleanup // e.g. returning from a useEffect hook in React neat.destroy();
Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch