Velocity X Components

Bento & Layout

Overlap/Offset Card Pair

Two cards with a deliberate offset overlap using pure CSS positioning, collapsing to a simple stack on mobile.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add overlap-card-pair

Built for astro.

Full docs for Overlap/Offset Card Pair →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.0
Overlap/Offset Card Pair

Before

After

Props

NameTypeRequiredDefaultDescription
as'div' | 'section'No'div'
offsetstringNo'32px'
direction'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'No'bottom-right'
collapseOnMobilebooleanNotrue
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/overlap-card-pair/OverlapCardPair.astro

Using the Overlap/Offset Card Pair component

Install it with velocityx add overlap-card-pair. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Bento & Layout.