Fork of HTML Starter
This interactive digital zen garden simulates a sandbox for creating meditative patterns and arrangements. Users can rake linear designs into a sand-colored background, place randomly sized and colored rocks, and add clip-path styled plants, all of which can be repositioned by dragging. The application uses vanilla JavaScript with mouse and touch event handlers, dynamically creating absolutely positioned DOM elements for each rake line, rock, and plant. The garden’s responsive layout adapts to screen size via CSS3 media queries.
AI-generated descriptionDigital Zen Garden
A calming, interactive web application that simulates a Japanese zen garden. Create patterns in the sand with the rake tool, place rocks and plants, and arrange your garden for a meditative digital experience.
Features
- Rake Tool: Draw patterns in the sand
- Rock Placement: Add rocks of various sizes and colors
- Plant Placement: Add plants to your garden
- Movable Elements: Rearrange rocks and plants by clicking and dragging
- Clear Function: Reset your garden and start fresh
Usage
- Select a tool from the toolbar at the top
- Click and drag in the garden area to rake patterns or place elements
- Arrange rocks and plants by dragging them to your desired position
- Clear the garden when you want to start over
Technologies Used
- HTML5
- CSS3
- JavaScript (vanilla)
Responsive Design
The Digital Zen Garden is designed to work on both desktop and mobile devices, adapting to different screen sizes for an optimal experience.