Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 21:45
· 13 commits to main since this release

vaso 1.1.0

New

  • <VasoGroup>: glass that merges. Every <Vaso> inside joins one glass, and pieces that come close flow into each other like drops of water. Move them with CSS or any animation library; the group follows.
  • pressable: the glass swells under a press, with a small lens under the finger.
  • ripple: every tap sends a ripple through the glass.
  • light: set where the light comes from, as an angle or "pointer" to follow the cursor.
  • vaso/core: the glass without React. createGlass(element, options) and createGlassGroup(element, options) work with any framework.

Improved

  • Merging glass now works in Safari and Firefox, not just Chromium.
  • Lighter in Safari: less work per frame, and copies of the page are only redrawn when something actually changed.
  • Safari now redraws the glass during presses, ripples and moving groups, instead of freezing until the next layout.
  • Glass bigger than the element behind it (like a switch knob over its track) now shows the real page around it in Safari and Firefox, not a flat fill.
  • prefers-reduced-motion is respected: no ripples, and presses settle without overshoot.

Notes

  • Members of a <VasoGroup> take only outset and radius. Set the other glass props on the group; members warn in development if they get them. pressable and ripple aren't supported in groups yet.