npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

liquid-vuey

v0.1.1

Published

Liquid gooey UI effects for Vue 3

Readme

liquid-vuey

Fluid, connected UI effects for Vue 3.

Use liquid-vuey to give menus, buttons, toggles, draggable controls, and other interface elements a playful liquid appearance while keeping their content clickable and accessible.

Installation

npm install liquid-vuey

Requires Vue 3.3 or newer.

Quick start

Wrap a group of LiquidItem components in Liquid, then move each item with the x, y, and scale props.

<script setup lang="ts">
import { ref } from 'vue'
import { Liquid, LiquidItem } from 'liquid-vuey'

const open = ref(false)
</script>

<template>
  <button @click="open = !open">
    Toggle menu
  </button>

  <Liquid fill="#7c3aed" class="liquid-menu">
    <LiquidItem :x="open ? -56 : 0" :y="open ? -32 : 0" transition="bouncy">
      <button class="menu-item" aria-label="Previous">←</button>
    </LiquidItem>

    <LiquidItem :y="open ? -68 : 0" :delay="40" transition="bouncy">
      <button class="menu-item" aria-label="Add">+</button>
    </LiquidItem>
  </Liquid>
</template>

<style scoped>
.liquid-menu {
  width: 180px;
  height: 180px;
}

.menu-item {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: transparent;
  cursor: pointer;
}
</style>

Following externally positioned elements

Use effect="move" when an item is positioned by drag logic, animation code, or your own CSS. The liquid shape follows the element and creates a trailing droplet as it moves.

<Liquid class="slider-track" fill="#2563eb">
  <LiquidItem
    effect="move"
    :move="{ springiness: 0.5, wobble: 0.5, stretch: 0.36, trail: 0.575 }"
  >
    <button
      class="slider-thumb"
      :style="{ transform: `translateX(${position}px)` }"
    />
  </LiquidItem>
</Liquid>

Components

Liquid

The container that controls the shared appearance of its liquid items.

| Prop | Type | Default | Description | | --- | --- | --- | --- | | blur | number | 6 | Softness of the liquid edges. | | contrast | number | 18 | How strongly nearby shapes connect. | | fill | string | #fff | Color of the liquid surface. | | filterPadding | number | 24 | Extra room around the effect to avoid clipped edges. |

The container accepts normal HTML attributes such as class, style, and id.

LiquidItem

Wraps one element that participates in the liquid effect. It must be placed inside Liquid.

| Prop | Type | Default | Description | | --- | --- | --- | --- | | effect | 'morph' \| 'move' | 'morph' | Chooses between direct movement and a following/trailing effect. | | x | number | 0 | Horizontal offset in pixels. | | y | number | 0 | Vertical offset in pixels. | | scale | number | 1 | Item scale. | | transition | 'snappy' \| 'smooth' \| 'bouncy' \| object | 'smooth' | Motion preset or custom transition. | | delay | number | 0 | Transition delay in milliseconds. | | radius | number \| [number, number, number, number] | inferred | Overrides the item corner radius. | | morph | MorphTuning | — | Fine-tunes the morph effect. | | move | MoveTuning | — | Fine-tunes the move effect. | | dissolve | boolean \| number \| DissolveOptions | false | Adds a dissolve-style transition. |

Exports

import Liquid, {
  LiquidItem,
  presets,
  type DissolveOptions,
  type MorphTuning,
  type MoveTuning,
  type Transition,
} from 'liquid-vuey'

Both of these component styles are supported:

<LiquidItem>...</LiquidItem>
<Liquid.Item>...</Liquid.Item>

Tips

  • Give the Liquid container enough width and height for the items' full range of movement.
  • Use transparent item backgrounds when you want the shared liquid color to show through.
  • Put text, icons, event handlers, focus states, and ARIA attributes on the slotted element as usual.
  • Motion is reduced automatically when the visitor prefers reduced motion.

License

MIT