Skip to main content
100%

SVG Fundamental

✓ Published0🌍 Public
BBart van Pelt
Last edited Dec 23, 2022
Created on Dec 23, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG drawing and animation techniques within an HTML page. It renders a landscape scene with a moving sun, animated gradient backgrounds, and layered curved landmasses defined by SVG path elements. The code uses native SVG features including `radialGradient` and `linearGradient` definitions, `<circle>`, `<rect>`, and `<path>` elements, and the `d` attribute with commands like `M`, `L`, `Q`, and `C`. Animations are implemented with the `<animate>` element, changing the sun’s `cy` position and color stops over fifteen-second cycles.

AI-generated description

Intro

see https://www.youtube.com/watch?v=xkBheRZTkaw

svg

  • has coordiates left top is (0,0) right bottom = (maxx, maxy)
  • no z-ordering as in html
  • z-ordering is order of elements in svg

Tools

Examples

  • Adil Zeshan - animation and color gradients
MIT Licensed

Similar vizzes