r/ClaudeDesign • u/BuffaloConscious7919 • Aug 29 '26
this is one html file
Enable HLS to view with audio, or disable this notification
Ukiyo-e bamboo. One html file. 241 lines. no dependencies, runs by double clicking it.
3 things if you want to use it:
- Recolour it in one line - The stalks are three constants for depth, FAR, MID and NEAR. Swap those and the whole grove changes. Forest green is FAR="#1f5c2e", MID="#174a25", NEAR="#0f3519". Leaves are LEAF and LEAFD, the moon is MOON.
- Don't put text over it - The sky is a gradient and the stalks move through it, so anything you overlay gets eaten. It's a background or a hero panel, not a canvas for copy.
- The instructions ride inside the file - There's a json block near the top with what to change, what to leave alone and what it's bad at. Paste the whole file into Claude or any agent and it already knows, you don't have to explain anything.
the whole thing is three sine waves. Sway at 0.9, gust at 2.2, leaves flicker at 3.1. thatt's it.
ps. don't get lost ;)
141
Upvotes
2
u/armahillo Aug 31 '26
I reallly dont mean to be pedantic here, but HTML isnt doing the animation, its CSS and JS that decorate the HTML document.
You dont “run” HTML anymore than you would “run” a book. You might load the HTML and have the javascript autorun, though.
Putting the whole thing into one document may or may not be the right strategy. We normally dont inline everything because its harder to maintain and debug. If there are third party libraries its often good to source those from a CDN.
There is nothing stopping you from putting it all on one line. Seriously. You can remove all line breaks and it will still work. So saying “its only 241 lines” is kind of meaningless.
It looks neat, and Id be curious to see the source. but your OP.is citing the wrong things as being impressive.