Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 03:11
· 10 commits to main since this release
2f4f554
  • compact: 'hover' shows just the icon in a circle, and opens into the full button with the label sliding in on hover or keyboard focus. On touch screens it stays a circle.
  • The hover option picks a hover effect: lift (the default, as before), pop, wiggle, shine, fill or none. --tipjar-shine and --tipjar-fill set their colours.
  • The enter option adds an entrance when the page loads: fade, slide or pop, after --tipjar-enter-delay (0.6s by default).
  • Look change: the button squishes slightly while pressed, on every device.
  • A new jar icon, drawn flat, pixel and outline, with a coin that drops in.
  • Icons can have moving parts, played by the new animate option: on hover (the default, and on keyboard focus), loop (three times on load, and on hover) or none. Coffee's steam rises past the edge of the button, and jar's coin drops in. --tipjar-accent colours the moving parts.
  • Four new icons, drawn flat, pixel and outline: coin (flips), tea (the tag swings), pizza (the slice pulls away) and music (a note floats up).
  • Look change: every 1.0 icon now moves on hover: the heart beats, the coffee steams, the star turns (a pixel star pulses), the gift's lid hops and the small sparkles twinkle. Their still drawings are unchanged; pass animate: 'none' to keep them still.
  • mount() takes nudgeAfter: seconds before one small wiggle, at most once per visit, never while tucked, hidden, already hovered or focused, or for people who ask for less motion. nudge(button, seconds) does the same for a button already on the page.
  • Reduced motion now also turns off every new effect, and wins over a site's own transitions on the button.