Glimpse
February 8, 2025A fluid and interactive UI element that adds a playful blob-like animation to your Astro projects. Perfect for creating engaging hover effects or dynamic backgrounds, the Jelly component brings a touch of organic movement to your web designs.
Features
- Customizable image display
- Flexible content structure
- Optional hover animations
- Responsive layout
API Reference
Prop | Default | Type | Description |
---|---|---|---|
title | - | string | Title of the card |
titleClass | - | string | Additional classes for the title |
owner | - | string | Name of the owner or author |
ownerClass | - | string | Additional classes for the owner name |
location | - | string | Location associated with the card |
locationClass | - | string | Additional classes for the location |
containerClass | - | string | Additional classes for the main container |
src | - | string | URL of the background image |
alt | - | string | Alternative text for the image |
width | ’w-60’ | string | Tailwind class for the container width |
height | ’h-72’ | string | Tailwind class for the container height |
animate | true | boolean | Determines if the reveal animation is applied on hover |
Usage
Type: JumpyItem[]
---
import { Glimpse, GlimpseProps } from "@butter-js/ui";
const data: GlimpseProps = {
title: "your-title",
owner: "butter-ui",
location: "Mont Blanc, Francia",
src: "url",
alt: "image butter",
width: "w-60",
height: "h-72",
animate: true,
}
---
<Glimpse {...item} />
Example
Card Gallery
Animated cards gallery.