0.1.0-beta.3
RU
Getting startedEssentialsTry itReference

Essentials›Motion

Motion

Change size or position in CSS and the glass flows there. You don't animate anything yourself.

The left one has everything turned up, the right one has everything off.

Settings

AttributeRangeWhat it does
morph0 to 1Softness of the flow. 0 jumps straight to the new shape
jelly0 to 1Stretch while moving and under a drag
press0 to 1How much the glass swells when held
glow0 to 1Light that spreads from under the finger
follow0 to 1How far the light chases the pointer

Appear

Add appear to materialise on load. show() and hide() return a promise, so you can remove the element when it is gone.

await glass.hide();
glass.remove();