Origami Fold Button
The button unfolds like paper with fold lines, paper texture, and clean layered reveal
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/origami-fold-button.
<iframe src="/embed/origami-fold-button" sandbox="allow-scripts" loading="lazy" title="Origami Fold Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Origami Fold Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="origami-btn">▣ ORIGAMI</button>CSS
.origami-btn {
position: relative;
padding: 1rem 2rem;
font-weight: 700;
letter-spacing: 0.05em;
background: transparent;
color: #f1f5f9;
border: none;
cursor: pointer;
overflow: hidden;
transition: all 0.3s ease;
}
.origami-btn:hover { transform: scale(1.02); }
.origami-btn:active { transform: scale(0.97); }
.origami-fold-1 { position: absolute; inset: 0; background: #1e293b; border: 1px solid rgba(255,255,255,0.1); transform-origin: left center; transition: transform 0.4s ease-out; pointer-events: none; }
.origami-fold-2 { position: absolute; inset: 0; background: #334155; border: 1px solid rgba(255,255,255,0.05); transform-origin: right center; transition: transform 0.4s ease-out; pointer-events: none; }
.origami-btn:hover .origami-fold-1 { transform: perspective(500px) rotateY(-5deg); }
.origami-btn:hover .origami-fold-2 { transform: perspective(500px) rotateY(5deg); }Tailwind CSS
<button class="px-8 py-4 font-bold tracking-wider bg-transparent text-slate-100 border-none hover:scale-102 active:scale-97 transition-all relative overflow-hidden">
<span class="relative z-10">▣ ORIGAMI</span>
<div class="absolute inset-0 bg-slate-800 border border-white/10 pointer-events-none" style="transform-origin: left center; transition: transform 0.4s ease-out;" />
<div class="absolute inset-0 bg-slate-700 border border-white/5 pointer-events-none" style="transform-origin: right center; transition: transform 0.4s ease-out;" />
</button>React
function OrigamiButton() {
return (
<motion.button
className="px-8 py-4 font-bold tracking-wider relative overflow-hidden"
style={{ background: 'transparent', color: '#f1f5f9', border: 'none', cursor: 'pointer' }}
whileHover={{ scale: 1.02 }}
whileTap={{ scale: 0.97 }}
>
<motion.div className="absolute inset-0" style={{ background: '#1e293b', border: '1px solid rgba(255,255,255,0.1)', transformOrigin: 'left center' }}
whileHover={{ rotateY: -5 }} transition={{ duration: 0.4 }}
/>
<span style={{ position: 'relative', zIndex: 10 }}>▣ ORIGAMI</span>
</motion.button>
);
}LWC — HTML template
<template><button class="origami-btn" onclick={handleClick}><span style="position:relative;z-index:10"><slot>▣ ORIGAMI</slot></span><div class="origami-fold-1"></div><div class="origami-fold-2"></div></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class OrigamiButton extends LightningElement {
@api label = '▣ ORIGAMI';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.origami-btn { position: relative; padding: 1rem 2rem; font-weight: 700; letter-spacing: 0.05em; background: transparent; color: #f1f5f9; border: none; cursor: pointer; overflow: hidden; transition: all 0.3s ease; }
.origami-btn:hover { transform: scale(1.02); }
.origami-btn:active { transform: scale(0.97); }
.origami-fold-1 { position: absolute; inset: 0; background: #1e293b; border: 1px solid rgba(255,255,255,0.1); transform-origin: left center; transition: transform 0.4s ease-out; pointer-events: none; }
.origami-fold-2 { position: absolute; inset: 0; background: #334155; border: 1px solid rgba(255,255,255,0.05); transform-origin: right center; transition: transform 0.4s ease-out; pointer-events: none; }
.origami-btn:hover .origami-fold-1 { transform: perspective(500px) rotateY(-5deg); }
.origami-btn:hover .origami-fold-2 { transform: perspective(500px) rotateY(5deg); }LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<targets><target>lightning__AppPage</target><target>lightning__RecordPage</target><target>lightning__HomePage</target></targets>
</LightningComponentBundle>Where Origami Fold Button fits
- Minimal Portfolios
- Creative Agencies
- Education
- Art
- Crafts
Interaction states & animations
- Paper Folding
- Layer Reveal
- Flip Transition
- Unfold
Topics
- #origami
- #fold
- #paper
- #unfold
- #minimal
- #creative
- #geometric
Accessibility notes
Fold animation is decorative — provide non-animated fallback. Ensure content is always visible.
Browser support
- All modern browsers