Make falling leaves for your website
Type your page colour and watch leaves tumble over it. Tune it live, then copy the code — no library needed.
- Free, no sign-up
- Nothing uploaded
- HTML, CSS + JS
No colour in mind? Try one:
How it works
- Type your page colour. Use the background of the section the leaves fall over. The page picks leaf colours that stand out from it and tells you if they do not.
- Tune it. Change the leaf, colours, number, size, fall speed and wind; the preview changes as you move a slider. Shuffle drops a new set of leaves.
- Why it looks like leaves. Each leaf turns over about its own long axis, so it thins to an edge and opens out on a duller underside, and it slides sideways as it turns. Far leaves are small and faint; a few near ones cross in front of your text.
- Take it with you. Copy the HTML, CSS and JavaScript, download a demo page to open on your computer, or download the script on its own.
Questions
- How do I add falling leaves to my website?
- Press Copy the code. Paste the HTML where the section goes and put your own content inside the content block, move the CSS into your stylesheet if you like, and keep the script at the end of the page. It needs no library.
- Will the animation slow my page down?
- Each leaf is one image drawn on a canvas, baked once. The animation stops while the section is scrolled out of view or the tab is hidden, the frame step is capped so a stall never jumps, and the number of leaves scales down on small screens.
- What about visitors who turn off animations?
- Visitors whose device asks for reduced motion see one still, composed frame of leaves instead of the animation.
- Is anything I make uploaded?
- No. The leaves and every file are made inside your browser tab. Only the optional AI step sends your description and the current settings, and only when you press its button.
- Can I use it in React, Vue or WordPress?
- Yes. The code is plain HTML, CSS and a script with no dependencies: paste the HTML into a component or a custom HTML block, and load the script once after the canvases are on the page.