🌍 Public
Viewing a saved revision (read-only)
24f8d3d4ffb44df1bd541cb7d9413cbc
Face Smiling
A smiley face drawn with SVG shapes animates its eyebrows upward and back down over four seconds. The code uses D3 v5 selections and transitions to move a group containing arc and rect elements, while the face itself is built from circles and a path generated with the d3.arc function. The example demonstrates fundamental DOM manipulation in plain JavaScript, with no external data source.
AI-generated descriptionSVG Embedded Webpage
This project displays an SVG image inside an HTML page with custom CSS styling.
Files:
- index.html - Main webpage structure.
- styles.css - Styles the page and the embedded SVG.
- your-image.svg - The SVG image (replace with your own).
How to Use:
- Place your SVG file as
your-image.svgin the project folder. - Open
index.htmlin a browser to view the webpage. - Customize
styles.cssto change the appearance.
Technologies Used:
- HTML
- CSS
- SVG