# Portfolio Hero Showcase: Floating Elements

A hero with floating shapes and images drifting around a centered headline. Use it to add motion and personality to a creative portfolio landing.

- Page: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/floating-elements
- Collection: [Portfolio](https://www.shadcn-ui-blocks.com/blocks/portfolio), Free tier
- Group: [Hero Showcases](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/floating-elements.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/portfolio-portfolio-hero-showcases-floating-elements
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/portfolio-portfolio-hero-showcases-floating-elements.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/portfolio/portfolio-hero-showcases/floating-elements`

## About this block

Floating Elements is a full viewport hero. A frosted glass card sits
centered on screen and holds a small badge with an icon and label, a
bold headline with a two word highlighted phrase, a short supporting
paragraph, and two buttons. Ringing the card on all sides are ten
floating shapes: three icon tiles (palette, code, layers), a color
swatch grid, two small image thumbnails, a wide pill with two stacked
lines, and three small dot and square accents. Each shape drifts in a
looping path with a staggered delay so the screen always feels in
motion, over a faint grid pattern that adds subtle texture.

All copy inside the card is independent of the floating layer, so the
badge label, headline, paragraph, and button text can each be changed
freely. The shapes are purely decorative, so add, remove, or reposition
them at will; the two image thumbnails accept any square crop.

## When to use

Reach for this block when the portfolio belongs to a creative working
across design and development and the opening screen needs to
communicate energy before a visitor scrolls. It suits a personal site
landing page or a candidate showcase inside an HR or hiring platform.
The motion layer sets it
apart from the static and image led heroes in this group, making it the
right pick when personality matters more than showing specific work up
front.

A natural flow around it on a Portfolio page:

**Before**

- Nothing. This hero is designed to open the page on its own.
- A [Full Screen Centered](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/full-screen-centered)
  hero instead, if you want a full screen image opener without the
  motion layer.

**After**

- [Featured Work Highlights](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-featured-work-highlights)
  to follow the hero with concrete project samples.
- [About And Skills](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-about-and-skills) for
  background and expertise right after the first impression.

## What you can customize

Three distinct layers you can adjust independently:

- **Center card content.** Swap the badge label and icon, rewrite the
  headline and paragraph, and relabel the buttons to match your role
  and your first call to action.
- **Floating image thumbnails.** Replace the two orbiting image tiles
  with cropped shots of your own work or process photos for an
  immediate taste of your style.
- **Decorative shape set.** The icon tiles and abstract shapes carry no
  semantic content, so remove ones that feel busy or add more to fill a
  wider canvas.

> Tip: keep the two buttons to one clear split between work and contact
> so the card stays focused and the floating layer stays the feature.

## More in Portfolio Hero Showcases

- [Carousel Slider](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/carousel-slider)
- [Full Screen Centered](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/full-screen-centered)
- [Minimalist CTA](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/minimalist-cta)
- [Split Layout](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases/split-layout)
