# Peeling sticker button

> A die-cut sticker with a white border whose corner lifts off its backing on hover and peels further on press.

- Category: [Buttons](https://library.aimran.es/components/buttons)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-btn-sticker-peel
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Vinyl stickers are everywhere in brand design right now, and this button behaves like one: a bright die-cut shape with a thick white border, tilted slightly, with one corner already lifting. On hover the corner curls back further and shows the glossy white underside, and pressing peels it almost halfway. A registered CSS length drives the clip path, so the cut edge and the flap move together.

The main color is the sticker and the secondary color is the text and icon, so acid lime with black or pink with deep red both pop. Use it for club sign-ups, merch drops, badges or a playful newsletter invitation.

## Code

### HTML

```html
<button class="uvq01-stk" type="button"><span class="bd"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z"/></svg><span>Join the club</span></span><span class="fl" aria-hidden="true"></span></button>
```

### CSS

```css
.uvq01-stk {
  --c1: #c6f432;
  --c2: #141414;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

@property --uvq01-pl {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.uvq01-stk {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: inline-block;
  --uvq01-pl: .4em;
  rotate: -3deg;
  filter: drop-shadow(0 .22em .25em rgba(0,0,0,.28));
  transition: --uvq01-pl calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1),rotate calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1),scale calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-stk .bd {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .95em 1.6em;
  border: .3em solid #fff;
  border-radius: 1.1em;
  font-weight: 850;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1;
  color: var(--c2);
  background: radial-gradient(120% 80% at 20% 0%,rgba(255,255,255,.35),transparent 55%),var(--c1);
  clip-path: polygon(0 0,100% 0,100% calc(100% - var(--uvq01-pl)),calc(100% - var(--uvq01-pl)) 100%,0 100%);
}

.uvq01-stk svg {
  width: 1.1em;
  height: 1.1em;
  transition: rotate calc(0.6s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-stk .fl {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--uvq01-pl);
  height: var(--uvq01-pl);
  background: linear-gradient(135deg,#fff 0%,#eeeef1 30%,#c9cace 50%);
  clip-path: polygon(0 0,100% 0,0 100%);
  filter: drop-shadow(-.05em -.05em .08em rgba(0,0,0,.2));
}

.uvq01-stk:hover,.uvq01-stk:focus-visible {
  --uvq01-pl: 1.5em;
  rotate: -1deg;
  scale: 1.03;
}

.uvq01-stk:hover svg {
  rotate: 72deg;
}

.uvq01-stk:active {
  --uvq01-pl: 2.6em;
  rotate: 1deg;
  scale: 1.05;
}

.uvq01-stk:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 5px;
  border-radius: 1.2em;
}

@media (prefers-reduced-motion:reduce) {
  .uvq01-stk,.uvq01-stk *,.uvq01-stk *::before,.uvq01-stk *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### React

```tsx
import type { CSSProperties } from "react";

const css = `
@property --uvq01-pl {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.uvq01-stk {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: inline-block;
  --uvq01-pl: .4em;
  rotate: -3deg;
  filter: drop-shadow(0 .22em .25em rgba(0,0,0,.28));
  transition: --uvq01-pl calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1),rotate calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1),scale calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-stk .bd {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .95em 1.6em;
  border: .3em solid #fff;
  border-radius: 1.1em;
  font-weight: 850;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1;
  color: var(--c2);
  background: radial-gradient(120% 80% at 20% 0%,rgba(255,255,255,.35),transparent 55%),var(--c1);
  clip-path: polygon(0 0,100% 0,100% calc(100% - var(--uvq01-pl)),calc(100% - var(--uvq01-pl)) 100%,0 100%);
}

.uvq01-stk svg {
  width: 1.1em;
  height: 1.1em;
  transition: rotate calc(0.6s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-stk .fl {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--uvq01-pl);
  height: var(--uvq01-pl);
  background: linear-gradient(135deg,#fff 0%,#eeeef1 30%,#c9cace 50%);
  clip-path: polygon(0 0,100% 0,0 100%);
  filter: drop-shadow(-.05em -.05em .08em rgba(0,0,0,.2));
}

.uvq01-stk:hover,.uvq01-stk:focus-visible {
  --uvq01-pl: 1.5em;
  rotate: -1deg;
  scale: 1.03;
}

.uvq01-stk:hover svg {
  rotate: 72deg;
}

.uvq01-stk:active {
  --uvq01-pl: 2.6em;
  rotate: 1deg;
  scale: 1.05;
}

.uvq01-stk:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 5px;
  border-radius: 1.2em;
}

@media (prefers-reduced-motion:reduce) {
  .uvq01-stk,.uvq01-stk *,.uvq01-stk *::before,.uvq01-stk *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

export default function BtnStickerPeel() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#c6f432",
          "--c2": "#141414",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <button className="uvq01-stk" type="button"><span className="bd"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z" /></svg><span>Join the club</span></span><span className="fl" aria-hidden="true"></span></button>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Peeling sticker button” block (Buttons) from AIMRAN Library to my project.

## What it is
A die-cut sticker with a white border whose corner lifts off its backing on hover and peels further on press.

## Chosen settings
- Main color: #c6f432
- Secondary color: #141414
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Únete al club"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import type { CSSProperties } from "react";

const css = `
@property --uvq01-pl {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.uvq01-stk {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: inline-block;
  --uvq01-pl: .4em;
  rotate: -3deg;
  filter: drop-shadow(0 .22em .25em rgba(0,0,0,.28));
  transition: --uvq01-pl calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1),rotate calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1),scale calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-stk .bd {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .95em 1.6em;
  border: .3em solid #fff;
  border-radius: 1.1em;
  font-weight: 850;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1;
  color: var(--c2);
  background: radial-gradient(120% 80% at 20% 0%,rgba(255,255,255,.35),transparent 55%),var(--c1);
  clip-path: polygon(0 0,100% 0,100% calc(100% - var(--uvq01-pl)),calc(100% - var(--uvq01-pl)) 100%,0 100%);
}

.uvq01-stk svg {
  width: 1.1em;
  height: 1.1em;
  transition: rotate calc(0.6s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-stk .fl {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--uvq01-pl);
  height: var(--uvq01-pl);
  background: linear-gradient(135deg,#fff 0%,#eeeef1 30%,#c9cace 50%);
  clip-path: polygon(0 0,100% 0,0 100%);
  filter: drop-shadow(-.05em -.05em .08em rgba(0,0,0,.2));
}

.uvq01-stk:hover,.uvq01-stk:focus-visible {
  --uvq01-pl: 1.5em;
  rotate: -1deg;
  scale: 1.03;
}

.uvq01-stk:hover svg {
  rotate: 72deg;
}

.uvq01-stk:active {
  --uvq01-pl: 2.6em;
  rotate: 1deg;
  scale: 1.05;
}

.uvq01-stk:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 5px;
  border-radius: 1.2em;
}

@media (prefers-reduced-motion:reduce) {
  .uvq01-stk,.uvq01-stk *,.uvq01-stk *::before,.uvq01-stk *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

export default function BtnStickerPeel() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#c6f432",
          "--c2": "#141414",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <button className="uvq01-stk" type="button"><span className="bd"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z" /></svg><span>Join the club</span></span><span className="fl" aria-hidden="true"></span></button>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
