anim-slides gallery

phase-changes

One sealed container holds the same 18 particles; energy in loosens the solid lattice into a liquid (melting, 0 °C) and spreads it into a gas (vaporization, 100 °C at 1 atm), then energy out brings it back through condensation and freezing; sublimation and deposition are named with their absorb/release wording.

water at 1 atm: melts at 0 °C, boils at 100 °C energy in energy out Solidordered, fixed in place Liquidclose, slide past each other Gasfar apart, move freely meltingabsorbs freezingreleases vaporizationabsorbs condensationreleases sublimationabsorbsdepositionreleases Three states of matter and the six named changes between them Melting: particles leave their fixed positions as the solid absorbs energy Vaporization: particles absorb energy and escape into the gas Condensation: gas particles release energy and gather into a liquid Freezing: the liquid releases energy and particles lock into a lattice Changes toward gas absorb energy; changes toward solid release it

Swipe sideways to see the whole figure.

Download playable demo
Verb
switch
Archetype
states
Domain
chemistry
viewBox
1680 × 600
Control
once: plays one pass, then rests on the finished state
Pass
10 s
Technique
one translate track per particle through lattice, liquid and gas positions; each of the four changes is one declared series (data-anim-series) of all 18; the energy stroke draws on and reverses; the lit state and labels cross-fade
Tags
chemistry, states-of-matter, phase-change, energy, particles, physics
Files
phase-changes.html (fragment) · phase-changes-demo.html (playable page) · spec.yaml · thumb.png
Source
pool/phase-changes/

Paste the fragment into any HTML deck; it plays while an ancestor has the class visible (one pass for once, then it holds the finished state) and otherwise shows its resting frame. Rename the prefix (phase-changes) when you adapt it so it stays unique in your deck.

spec.yaml

# Phase changes between the three states of matter, with the six transitions named and whether
# each absorbs or releases energy (textbook: changes toward gas absorb, changes toward solid
# release). The only temperatures are for water at 1 atm (melts at 0 °C, boils at 100 °C).
# Scaffold with:
#   python3 scripts/scaffold_from_spec.py pool/phase-changes/spec.yaml -o pool/phase-changes/phase-changes.html
# The shipped phase-changes.html is hand-built (verb switch): one sealed container holds the same
# 18 particles for the whole round trip (melting, vaporization, then energy out: condensation,
# freezing), each change one declared staggered series; a state scale lights solid, liquid, gas;
# sublimation and deposition are a legend line. This spec reproduces structure and timing only; it does not draw the particle motion.
name: phase-changes
archetype: states
verb: switch
domain: chemistry
size: [1680, 600]
control: once
cycle: 10
nodes:
  - { id: solid,  label: Solid,  sub: "ordered, fixed in place" }
  - { id: liquid, label: Liquid, sub: "close, slide past each other" }
  - { id: gas,    label: Gas,    sub: "far apart, move freely" }
edges:
  - { from: solid,  to: liquid, label: melting }
  - { from: liquid, to: gas,    label: vaporization }
  - { from: gas,    to: liquid, label: condensation, kind: event }
  - { from: liquid, to: solid,  label: freezing,     kind: event }
  - { from: solid,  to: gas,    label: sublimation }
  - { from: gas,    to: solid,  label: deposition,   kind: event }
phases:
  - { t: 0,   label: states,       active: [solid],                          note: "Three states of matter and the six named changes between them" }
  - { t: 0.8, label: melting,      active: [liquid], flow: ["solid>liquid"], note: "Melting: particles leave their fixed positions as the solid absorbs energy" }
  - { t: 2.1, label: vaporization, active: [gas],    flow: ["liquid>gas"],   note: "Vaporization: particles absorb energy and escape into the gas" }
  - { t: 3.5, label: condensation, active: [liquid], flow: ["gas>liquid"],   note: "Condensation: gas particles release energy and gather into a liquid" }
  - { t: 4.8, label: freezing,     active: [solid],  flow: ["liquid>solid"], note: "Freezing: the liquid releases energy and particles lock into a lattice" }
  - { t: 6.1, label: sublimation,  active: [gas],    flow: ["solid>gas"],    note: "Sublimation: a solid absorbs energy and becomes a gas directly" }
  - { t: 7.5, label: deposition,   active: [solid],  flow: ["gas>solid"],    note: "Deposition: a gas releases energy and becomes a solid directly" }
  - { t: 8.7, label: hold, note: "Changes toward gas absorb energy; changes toward solid release it" }