All effectsClick & switch

Sticker Peel

贴纸掀起

One corner of an adhesive label lifts with a brief glint and reveals a design underneath.

Hover or tap to peel the label

Where to use it

Reveal a detail under a badge, price sticker, or merchandise label. Let the lifted corner hint at the material underneath, and make the full reveal available via tap or keyboard.

Practical example

A print shop covers a sample swatch with a paper seal. Visitors lift the edge or tap the seal to reveal a contrasting ink color.

Also called

  • Peel Sticker

AI prompt

Add Sticker Peel to [badge]. On hover or drag, lift one corner with a thin adhesive sheen and reveal what is underneath. Ground the peel with a small shadow. Provide an instant reveal for reduced motion.

Example code

Save the standalone HTML as a file and open it in your browser. It uses the same code as the preview.

View HTML
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Sticker Peel</title>
  <style>
    :root {
      color-scheme: dark;
      --demo-bg: #171629;
      --demo-ink: #f8f5ff;
      --demo-accent: #b9a6ff;
      --demo-muted: #bfbbd3;
      font-family: system-ui, sans-serif;
      color: var(--demo-ink);
      background: var(--demo-bg);
    }

    *, *::before, *::after { box-sizing: border-box; }
    body { margin: 0; min-width: 0; }
    button, input { font: inherit; }

    .demo {
      display: grid;
      place-items: center;
      align-content: center;
      min-height: 100vh;
      padding: 14px;
      overflow: hidden;
      background: radial-gradient(ellipse at 50% 24%, #28233f, var(--demo-bg) 78%);
    }

    .demo-button {
      border: 1px solid #ffffff3d;
      border-radius: 7px;
      background: #ffffff12;
      color: var(--demo-ink);
      padding: 6px 11px;
      font-size: 12px;
      cursor: pointer;
    }

    :focus-visible {
      outline: 2px solid var(--demo-accent);
      outline-offset: 3px;
    }

    .demo { background: radial-gradient(ellipse at 36% 25%, #93c3ff, #5969b6 80%); }
    .reward {
      --lift: 27px;
      position: relative;
      width: min(100%, 236px);
      height: 114px;
      padding: 0;
      border: 1px solid #9ebcff8a;
      border-radius: 17px;
      background: radial-gradient(ellipse at 100% 100%, #355499, #151b4d 71%);
      color: #edf3ff;
      box-shadow: 0 13px 24px #20265080;
      cursor: pointer;
    }
    .reward:focus-visible { outline-color: #182656; }
    .discount {
      position: absolute;
      top: 50%;
      right: 12px;
      transform: translateY(-50%);
      font: 820 clamp(21px, 7.8vw, 31px)/1 system-ui, sans-serif;
      letter-spacing: -.075em;
      opacity: .22;
      transition: opacity .25s ease, right .3s ease;
    }
    .sticker {
      position: absolute;
      inset: -9px 27px -6px 12px;
      transform: rotate(-8deg);
      transform-origin: top left;
      filter: drop-shadow(2px 7px 4px #030a2c80);
      transition: transform .38s ease;
    }
    .sticker-front {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      border: 1px solid #fcffb6;
      border-radius: 25px 13px 26px 14px;
      background:
        radial-gradient(ellipse at 38% 6%, #fcffa3, transparent 65%),
        repeating-linear-gradient(112deg, transparent 0 3px, #4d610414 3px 4px),
        #c9e947;
      color: #293a05;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--lift)), calc(100% - var(--lift)) 100%, 0 100%);
      transition: clip-path .35s ease;
    }
    .sticker-front > span { font: italic 700 clamp(22px, 9vw, 34px)/1 Georgia, serif; letter-spacing: -.065em; }
    .adhesive {
      position: absolute;
      right: 0;
      bottom: 0;
      width: var(--lift);
      height: var(--lift);
      filter: drop-shadow(-2px -2px 3px #23340d80);
      transition: width .35s ease, height .35s ease;
    }
    .adhesive::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 8px 0 0 0;
      background: linear-gradient(135deg, #5d792f 2%, #e7fbb6 24%, #fbffe8 36%, #a7b984 48%, #4c6838 68%);
      clip-path: polygon(0 0, 100% 0, 0 100%);
    }
    .reward:is(:hover, :focus-visible) { --lift: 61px; }
    .reward:is(:hover, :focus-visible, [aria-pressed='true']) .discount { opacity: 1; }
    .reward[aria-pressed='true'] { --lift: 53px; }
    .reward[aria-pressed='true'] .discount { right: 19px; }
    .reward[aria-pressed='true'] .sticker { transform: translate(-16px, 2px) rotate(-18deg) scale(.72); }
    @media (prefers-reduced-motion: reduce) {
      .reward * { transition: none; }
    }

    [role="status"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  </style>
</head>
<body>
  <main class="demo">
    <button class="reward" type="button" aria-pressed="false" aria-label="Peel the sticker to reveal the discount">
      <span class="discount" aria-hidden="true">20% off</span>
      <span class="sticker" aria-hidden="true">
        <span class="sticker-front"><span>Peel me</span></span>
        <span class="adhesive"></span>
      </span>
    </button>
    <span role="status" data-on="20% off" data-off=""></span>
  </main>
  <script>
    const button = document.querySelector('[aria-pressed]');
    button.addEventListener('click', () => {
      button.setAttribute('aria-pressed', String(button.getAttribute('aria-pressed') !== 'true'));
    });

    const status = document.querySelector('[role="status"]');
    button.addEventListener('click', () => {
      status.textContent = button.getAttribute('aria-pressed') === 'true' ? status.dataset.on : status.dataset.off;
    });
  </script>
</body>
</html>

Original example by UI Skills