One tag,
three times
<liquid-logo src="harbour-static-mark.svg" colors="#4F9DDE,#F2B134" label="Harbour Static"></liquid-logo>
Live attributes
These change the first logo's attributes while it runs. Nothing reloads.
A logo you can touch is a hero section people play with. This paragraph is here to be scrolled past, so the first logo leaves the screen and its loop pauses.
Multi-colour logos keep their colours
No colors attribute here, and the SVG has a viewBox but no width or height. Re-forming is set to firm and the stir radius is wider.
<liquid-logo src="low-tide-radio.svg" restore="firm" radius="1.4" label="Low Tide Radio"></liquid-logo>
- 01
Scrolling
The element sets
touch-action: pan-y, so a vertical swipe that starts on a logo still scrolls the page. - 02
Off screen
An IntersectionObserver pauses the loop when a logo leaves the screen. The panel in the corner shows all three at once.
- 03
Hidden tab
Switch tabs and every loop pauses; come back and they carry on.
- 04
Settled
Leave a logo alone and its loop stops a few seconds after it has re-formed. The frame count stops with it.
- 05
Keyboard
Tab to a logo. Arrow keys push the ink from the middle; Space sends a burst.
<liquid-logo src="harbour-static-mark.svg" colors="#ffffff,#F2B134" capture="all" force="1.5" label="Harbour Static, on dark"></liquid-logo>
This one takes every touch, so a swipe that starts on it never scrolls. That is right for a full-screen page and wrong for most embeds, which is why it is not the default. The canvas is transparent, so the panel's colour shows through.