AnimationsSimpleApril 8, 2026

Clip-Path Polygon Video Reveal

Image or video is collapsed to a horizontal line using clip-path polygon. On hover it expands to full rectangle while rising upward. A distinctive hover interaction using pure CSS.

View Full Demo →
index.jsx
import styles from "./styles.module.css";

export default function ClipPathPolygonVideoReveal({ projects = [] }) {
  return (
    <div className={styles.grid}>
      {projects.map((project) => (
        <a key={project.title} href={project.href} className={styles.card}>
          <div className={styles.videoWrap}>
            <div
              className={styles.video}
              style={{ backgroundImage: `url(${project.image})` }}
            />
          </div>
          <div className={styles.info}>
            <span className={styles.title}>{project.title}</span>
            <span className={styles.category}>{project.category}</span>
          </div>
        </a>
      ))}
    </div>
  );
}
styles.module.css
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: #1a1a1a;
}

/* Clip reveals from center line to full rectangle */
.videoWrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.video {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;

  clip-path: polygon(30% 50%, 70% 50%, 70% 50%, 30% 50%);
  transform: translateY(-8.33%);
  transition: clip-path 700ms cubic-bezier(0.87, 0, 0.13, 1),
              transform 700ms cubic-bezier(0.87, 0, 0.13, 1);
}

.card:hover .video {
  clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
  transform: translateY(-50%);
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.title {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.category {
  font-size: 0.8125rem;
  color: #9b9b9b;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

Apr 27, 2026

ANIMATIONS

Cursor Hover Label

A custom cursor label that follows the mouse and fades in when hovering trigger elements. Uses GSAP quickTo for smooth tracking. Trigger elements use data-cursor-label attributes to set label text. Inspired by portfolio/agency sites like Studio PIC.

Apr 27, 2026

ANIMATIONS

Section Transition 01

GSAP ScrollTrigger-based section transition system. Sibling sections opt into parallax, pin, or reveal modes via data attributes. Supports y offset, overlay opacity, and overlay color per section. Mobile strategy simplifies motion on smaller screens.

Apr 27, 2026

ANIMATIONS

Text Reveal 01

GSAP SplitText-based text reveal system. Text elements opt in with data-reveal-01 and split into lines, words, or characters. Supports load-time reveals, scroll-triggered reveals, scrubbed scroll reveals, and manual split-only mode for custom timelines. Per-element overrides for duration, stagger, delay, ease, and replay behavior.