/* Demo stages. Every loop length divides 18 s (1.5 / 2 / 3 / 4.5 / 6 / 9). */
.st { --ink: #171717; --g: #d8d4c8; --g2: #e7e3d9; --ac: #ff5a1f; --bl: #2f6bff; position: relative; aspect-ratio: 16 / 11; border-radius: 14px; background: #f1eee6; overflow: hidden; isolation: isolate; }
.st i, .st b, .st s, .st p, .st span { display: block; font-style: normal; text-decoration: none; margin: 0; }
.st > div { position: absolute; inset: 0; }
@keyframes none_ {}
/* hero */
.d-hero .hr { inset: 10% 8%; }
.d-hero .nav { position: absolute; left: 0; right: 0; top: 0; height: 6%; border-radius: 4px; background: var(--g2); }
.d-hero .t1, .d-hero .t2 { position: absolute; left: 0; height: 13%; border-radius: 5px; background: var(--ink); animation: heroT 3s cubic-bezier(.2,.8,.2,1) infinite; }
.d-hero .t1 { top: 22%; width: 52%; } .d-hero .t2 { top: 38%; width: 38%; animation-delay: .08s; }
.d-hero .sub { position: absolute; left: 0; top: 58%; width: 44%; height: 6%; border-radius: 3px; background: var(--g); animation: heroT 3s .16s cubic-bezier(.2,.8,.2,1) infinite; }
.d-hero .cta { position: absolute; left: 0; top: 74%; width: 22%; height: 12%; border-radius: 99px; background: var(--ac); animation: heroC 3s infinite; }
.d-hero .img { position: absolute; right: 0; top: 18%; width: 34%; height: 70%; border-radius: 10px; background: linear-gradient(140deg, #ffb38a, #ff5a1f 60%, #c03a10); animation: heroT 3s .1s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes heroT { 0% { transform: translateY(18px); opacity: 0 } 20%, 88% { transform: none; opacity: 1 } 100% { opacity: 0 } }
@keyframes heroC { 0%, 20% { transform: scale(.6); opacity: 0 } 32% { transform: scale(1.08); opacity: 1 } 40%, 88% { transform: none; opacity: 1 } 100% { opacity: 0 } }
/* bento */
.d-bento .bt { inset: 8%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; }
.d-bento .bt i { border-radius: 9px; background: var(--g); animation: bentoH 6s infinite; }
.d-bento .b0 { grid-column: span 2; grid-row: span 2; background: var(--ink) !important; } .d-bento .b1 { grid-column: span 2; background: var(--ac) !important; } .d-bento .b2 { grid-row: span 2; } .d-bento .b5 { grid-column: span 2; background: #b9c8ff !important; }
.d-bento .b1 { animation-delay: -5s } .d-bento .b2 { animation-delay: -4s } .d-bento .b3 { animation-delay: -3s } .d-bento .b4 { animation-delay: -2s } .d-bento .b5 { animation-delay: -1s }
@keyframes bentoH { 0%, 12%, 100% { transform: none } 6% { transform: scale(.94) } }
/* masonry */
.d-masonry .ms { inset: 0 8%; display: flex; gap: 6px; }
.d-masonry .col { flex: 1; display: flex; flex-direction: column; gap: 6px; animation: msUp 9s linear infinite; }
.d-masonry .col.c1 { animation-duration: 6s; } .d-masonry .col i { border-radius: 7px; background: var(--g); flex: none; }
.d-masonry .col i:nth-child(3n) { background: #ffc9b0; } .d-masonry .col i:nth-child(4n+1) { background: #cfd8ff; }
@keyframes msUp { to { transform: translateY(-50%) } }
/* sticky */
.d-sticky .pg { inset: 0 10%; animation: skPg 6s cubic-bezier(.4,0,.2,1) infinite; padding-top: 22%; }
.d-sticky .pg i { height: 18%; margin-bottom: 4%; border-radius: 6px; background: var(--g); }
.d-sticky .hd { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: #fff; display: flex; align-items: center; gap: 6%; padding: 0 10%; animation: skHd 6s cubic-bezier(.4,0,.2,1) infinite; }
.d-sticky .hd b { width: 16%; height: 30%; border-radius: 3px; background: var(--ink); margin-right: auto; } .d-sticky .hd i { width: 9%; height: 16%; border-radius: 3px; background: var(--g); }
@keyframes skPg { 0%, 10% { transform: none } 50%, 60% { transform: translateY(-58%) } 100% { transform: none } }
@keyframes skHd { 0%, 12% { height: 18%; box-shadow: none } 30%, 58% { height: 12%; box-shadow: 0 6px 14px rgba(0,0,0,.12) } 90%, 100% { height: 18%; box-shadow: none } }
/* sidebar */
.d-sidebar .sb { display: flex; }
.d-sidebar .side { width: 38%; background: var(--ink); padding: 8% 0 0 5%; animation: sbW 4.5s cubic-bezier(.6,0,.2,1) infinite; overflow: hidden; }
.d-sidebar .side p { display: flex; align-items: center; gap: 8px; height: 15%; } .d-sidebar .side p i { width: 12px; height: 12px; border-radius: 4px; background: #fff; flex: none; } .d-sidebar .side p:first-child i { background: var(--ac); }
.d-sidebar .side p b { height: 6px; border-radius: 3px; background: #6b6b6b; flex: none; animation: sbT 4.5s infinite; }
.d-sidebar .main { flex: 1; padding: 8%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .d-sidebar .main i { border-radius: 7px; background: var(--g); }
@keyframes sbW { 0%, 30%, 100% { width: 38% } 50%, 80% { width: 14% } }
@keyframes sbT { 0%, 30%, 100% { opacity: 1 } 42%, 85% { opacity: 0 } }
/* split */
.d-split .sp { display: flex; }
.d-split .l { width: 50%; background: linear-gradient(160deg, #2f6bff, #9fb6ff); position: relative; animation: spL 6s cubic-bezier(.6,0,.2,1) infinite; } .d-split .l i { position: absolute; left: 28%; top: 30%; width: 44%; aspect-ratio: 1; border-radius: 50%; background: #fff3; }
.d-split .rr { flex: 1; padding: 12% 8%; display: flex; flex-direction: column; gap: 7%; } .d-split .rr b { height: 12%; width: 80%; border-radius: 4px; background: var(--ink); } .d-split .rr b.s { width: 55%; } .d-split .rr i { height: 5%; border-radius: 3px; background: var(--g); } .d-split .rr .btn { width: 40%; height: 12%; border-radius: 99px; background: var(--ac); margin-top: auto; }
@keyframes spL { 0%, 40%, 100% { width: 50% } 55%, 85% { width: 40% } }
/* tab bar */
.d-tabbar .ph, .d-sheet .ph { left: 50%; top: 8%; bottom: -10%; width: 40%; transform: translateX(-50%); border-radius: 16px 16px 0 0; background: #fff; border: 2px solid var(--ink); border-bottom: 0; overflow: hidden; }
.d-tabbar .scr { position: absolute; inset: 8% 8% 30%; border-radius: 8px; background: var(--g2); }
.d-tabbar .bar { position: absolute; left: 0; right: 0; bottom: 10%; height: 18%; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--g); }
.d-tabbar .ic { width: 13%; aspect-ratio: 1; border-radius: 4px; background: var(--g); }
.d-tabbar .ind { position: absolute; bottom: 8%; left: 6.5%; width: 12%; height: 3px; border-radius: 2px; background: var(--ac); animation: tbI 6s cubic-bezier(.5,1.6,.4,1) infinite; }
@keyframes tbI { 0%, 22% { transform: translateX(0) } 25%, 47% { transform: translateX(200%) } 50%, 72% { transform: translateX(400%) } 75%, 97% { transform: translateX(600%) } 100% { transform: translateX(0) } }
/* 12 col */
.d-grid12 .cols { inset: 0 6%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; } .d-grid12 .cols i { background: rgba(255,90,31,.12); }
.d-grid12 .a, .d-grid12 .b, .d-grid12 .c { position: absolute; border-radius: 6px; background: var(--ink); }
.d-grid12 .a { left: 6%; top: 14%; height: 22%; animation: g12a 6s cubic-bezier(.6,0,.2,1) infinite; } .d-grid12 .b { top: 44%; height: 40%; background: #2f6bff; animation: g12b 6s cubic-bezier(.6,0,.2,1) infinite; } .d-grid12 .c { top: 44%; height: 40%; background: var(--g); animation: g12c 6s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes g12a { 0%, 45%, 100% { width: 88% } 50%, 95% { width: 57% } }
@keyframes g12b { 0%, 45%, 100% { left: 6%; width: 57% } 50%, 95% { left: 6%; width: 27% } }
@keyframes g12c { 0%, 45%, 100% { left: 65.5%; width: 28.5% } 50%, 95% { left: 35.5%; width: 58.5% } }
/* modal */
.d-modal .bgp { inset: 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .d-modal .bgp i { border-radius: 7px; background: var(--g); }
.d-modal .dim { background: rgba(10,10,10,.45); animation: mdD 4.5s infinite; }
.d-modal .box { left: 22%; right: 22%; top: 22%; bottom: 22%; background: #fff; border-radius: 12px; padding: 7% 6%; display: flex; flex-direction: column; gap: 9%; animation: mdB 4.5s cubic-bezier(.3,1.4,.5,1) infinite; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.d-modal .box b { height: 14%; width: 60%; border-radius: 3px; background: var(--ink); } .d-modal .box i { height: 7%; border-radius: 3px; background: var(--g); } .d-modal .box p { margin-top: auto; display: flex; gap: 6%; justify-content: flex-end; height: 18%; } .d-modal .box span { width: 26%; border-radius: 99px; background: var(--g2); } .d-modal .box span.ok { background: var(--ac); }
@keyframes mdD { 0%, 15% { opacity: 0 } 25%, 80% { opacity: 1 } 90%, 100% { opacity: 0 } }
@keyframes mdB { 0%, 15% { transform: scale(.85); opacity: 0 } 25%, 80% { transform: none; opacity: 1 } 88%, 100% { transform: scale(.95); opacity: 0 } }
/* sheet */
.d-sheet .ph { background: var(--g2); }
.d-sheet .dim { background: rgba(0,0,0,.35); animation: mdD 4.5s infinite; }
.d-sheet .pan { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: #fff; border-radius: 14px 14px 0 0; padding: 6% 9%; animation: shUp 4.5s cubic-bezier(.2,.9,.25,1.05) infinite; }
.d-sheet .pan s { width: 24%; height: 4px; border-radius: 2px; background: var(--g); margin: 0 auto 10%; } .d-sheet .pan p { display: flex; gap: 8%; align-items: center; height: 16%; margin-bottom: 4%; } .d-sheet .pan p i { width: 18%; aspect-ratio: 1; border-radius: 6px; background: #ffc9b0; } .d-sheet .pan p b { flex: 1; height: 26%; border-radius: 3px; background: var(--g); }
@keyframes shUp { 0%, 15% { transform: translateY(100%) } 30%, 80% { transform: none } 92%, 100% { transform: translateY(100%) } }
/* toast */
.d-toast .t { position: absolute; left: 50%; bottom: 10%; width: 62%; height: 18%; margin-left: -31%; border-radius: 12px; background: var(--ink); display: flex; align-items: center; gap: 6%; padding: 0 5%; animation: tsT 4.5s cubic-bezier(.3,1.3,.5,1) infinite; opacity: 0; }
.d-toast .t i { width: 10%; aspect-ratio: 1; border-radius: 50%; background: #3ddc84; } .d-toast .t b { flex: 1; height: 18%; border-radius: 3px; background: #666; }
.d-toast .t1 { animation-delay: -3s } .d-toast .t2 { animation-delay: -1.5s }
@keyframes tsT { 0% { transform: translateY(140%); opacity: 0 } 8% { transform: none; opacity: 1 } 33% { transform: translateY(-115%) scale(.94); opacity: .8 } 58% { transform: translateY(-230%) scale(.88); opacity: .45 } 66%, 100% { transform: translateY(-260%) scale(.86); opacity: 0 } }
/* accordion */
.d-accordion .ac { inset: 10% 10%; display: flex; flex-direction: column; gap: 6px; }
.d-accordion .row { background: #fff; border-radius: 9px; overflow: hidden; }
.d-accordion .row p { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; } .d-accordion .row p b { width: 46%; height: 6px; border-radius: 3px; background: var(--ink); } .d-accordion .row p s { width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); animation: acA 6s infinite; }
.d-accordion .body { height: 0; padding: 0 10px; animation: acB 6s cubic-bezier(.4,0,.2,1) infinite; } .d-accordion .body i { height: 6px; border-radius: 3px; background: var(--g); margin-bottom: 7px; } .d-accordion .body i + i { width: 70%; }
.d-accordion .r1 .body, .d-accordion .r1 p s { animation-delay: -4s } .d-accordion .r2 .body, .d-accordion .r2 p s { animation-delay: -2s }
@keyframes acB { 0%, 30%, 100% { height: 0 } 5%, 28% { height: 32px } }
@keyframes acA { 0%, 30%, 100% { transform: rotate(45deg) } 5%, 28% { transform: rotate(225deg) } }
/* tabs */
.d-tabs .tbs { inset: 10% 8%; } .d-tabs .tbs > p { position: relative; display: flex; height: 18%; border-bottom: 1px solid var(--g); } .d-tabs .tbs > p span { flex: 1; } .d-tabs .tbs > p span::after { content: ""; display: block; width: 50%; height: 7px; margin: 30% auto 0; border-radius: 3px; background: var(--ink); }
.d-tabs .ul { position: absolute; left: 0; bottom: -1px; width: 33.33%; height: 3px; background: var(--ac); animation: tbU 6s cubic-bezier(.6,0,.2,1) infinite; }
.d-tabs .pnl { position: relative; height: 75%; margin-top: 5%; } .d-tabs .pp { position: absolute; inset: 0; display: grid; gap: 6px; animation: tbP 6s infinite; opacity: 0; } .d-tabs .pp i { border-radius: 7px; background: var(--g); }
.d-tabs .p0 { grid-template-columns: 2fr 1fr; } .d-tabs .p1 { grid-template-columns: 1fr 1fr 1fr; animation-delay: -4s; } .d-tabs .p1 i { background: #cfd8ff; } .d-tabs .p2 { grid-template-rows: 1fr 1fr 1fr; animation-delay: -2s; } .d-tabs .p2 i { background: #ffc9b0; }
@keyframes tbU { 0%, 30% { transform: none } 36%, 63% { transform: translateX(100%) } 69%, 96% { transform: translateX(200%) } 100% { transform: none } }
@keyframes tbP { 0%, 30% { opacity: 1 } 34%, 96% { opacity: 0 } 100% { opacity: 1 } }
/* segmented */
.d-segmented .sg { display: grid; place-items: center; } .d-segmented .pill { position: relative; display: flex; width: 74%; height: 26%; padding: 4px; border-radius: 12px; background: #e3dfd4; }
.d-segmented .pill span { flex: 1; z-index: 1; display: grid; place-items: center; font: 600 14px var(--sans); color: #555; }
.d-segmented .th { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); animation: sgT 4.5s cubic-bezier(.4,1.5,.5,1) infinite; }
@keyframes sgT { 0%, 28% { transform: none } 33%, 61% { transform: translateX(100%) } 66%, 95% { transform: translateX(200%) } 100% { transform: none } }
/* tooltip */
.d-tooltip .tt { display: grid; place-items: center; } .d-tooltip .ico { width: 18%; aspect-ratio: 1; border-radius: 12px; background: var(--ink); margin-top: 14%; }
.d-tooltip .tip { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 7px 12px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 13px var(--sans); white-space: nowrap; animation: ttP 3s cubic-bezier(.3,1.4,.5,1) infinite; }
.d-tooltip .tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
@keyframes ttP { 0%, 20% { opacity: 0; transform: translate(-50%, 6px) scale(.9) } 30%, 80% { opacity: 1; transform: translate(-50%, 0) } 90%, 100% { opacity: 0; transform: translate(-50%, 6px) scale(.9) } }
/* carousel */
.d-carousel .trk { left: 0; top: 12%; height: 62%; display: flex; gap: 4%; padding-left: 14%; width: 100%; animation: crT 6s cubic-bezier(.6,0,.2,1) infinite; }
.d-carousel .trk i { flex: 0 0 72%; border-radius: 12px; } .d-carousel .s0 { background: linear-gradient(140deg, #ff9a6b, #ff5a1f); } .d-carousel .s1 { background: linear-gradient(140deg, #9fb6ff, #2f6bff); } .d-carousel .s2 { background: linear-gradient(140deg, #ffe08a, #f5b400); } .d-carousel .s3 { background: linear-gradient(140deg, #9be7c4, #1fae6f); }
.d-carousel > div > p, .d-carousel p { position: absolute; left: 0; right: 0; bottom: 9%; display: flex; justify-content: center; gap: 6px; } .d-carousel p b { width: 6px; height: 6px; border-radius: 3px; background: var(--g); animation: crD 6s infinite; }
.d-carousel .d1 { animation-delay: -4.5s } .d-carousel .d2 { animation-delay: -3s } .d-carousel .d3 { animation-delay: -1.5s }
@keyframes crT { 0%, 20% { transform: none } 25%, 45% { transform: translateX(-76%) } 50%, 70% { transform: translateX(-152%) } 75%, 95% { transform: translateX(-228%) } 100% { transform: translateX(-304%) } }
@keyframes crD { 0%, 22% { width: 18px; background: var(--ink) } 25%, 100% { width: 6px; background: var(--g) } }
/* glass */
.d-glass .gl { background: #e8e4ff; } .d-glass .gl > i { position: absolute; border-radius: 50%; }
.d-glass .o1 { width: 40%; aspect-ratio: 1; left: 10%; top: 10%; background: #ff5a1f; animation: glO 6s ease-in-out infinite; } .d-glass .o2 { width: 32%; aspect-ratio: 1; right: 8%; top: 40%; background: #2f6bff; animation: glO 6s -3s ease-in-out infinite; } .d-glass .o3 { width: 22%; aspect-ratio: 1; left: 42%; top: 55%; background: #f5b400; animation: glO 4.5s -1s ease-in-out infinite; }
.d-glass .card { position: absolute; left: 22%; right: 22%; top: 22%; bottom: 22%; border-radius: 14px; background: rgba(255,255,255,.28); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 10px 30px rgba(40,30,90,.18); padding: 8%; display: flex; flex-direction: column; gap: 10%; }
.d-glass .card b { height: 16%; width: 50%; border-radius: 3px; background: rgba(255,255,255,.9); } .d-glass .card i { height: 8%; border-radius: 3px; background: rgba(255,255,255,.6); }
@keyframes glO { 0%, 100% { transform: none } 50% { transform: translate(30%, -20%) scale(1.15) } }
/* neumorphism */
.d-neu .nm { background: #e6e2da; display: flex; align-items: center; justify-content: center; gap: 8%; }
.d-neu .k { width: 20%; aspect-ratio: 1; border-radius: 22%; background: #e6e2da; box-shadow: 7px 7px 14px #c4c0b8, -7px -7px 14px #fffefa; animation: nmK 4.5s infinite; }
.d-neu .k1 { animation-delay: -3s; border-radius: 50%; } .d-neu .k2 { animation-delay: -1.5s; }
@keyframes nmK { 0%, 20%, 45%, 100% { box-shadow: 7px 7px 14px #c4c0b8, -7px -7px 14px #fffefa } 25%, 40% { box-shadow: inset 6px 6px 12px #c4c0b8, inset -6px -6px 12px #fffefa } }
/* mesh */
.d-mesh .mg { background: #ffd9c7; filter: blur(18px) saturate(1.3); transform: scale(1.2); } .d-mesh .mg i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; }
.d-mesh .a { background: #ff5a1f; left: -10%; top: -20%; animation: mgA 9s ease-in-out infinite; } .d-mesh .b { background: #7a5cff; right: -10%; top: -10%; animation: mgA 9s -3s ease-in-out infinite reverse; } .d-mesh .c { background: #ffd23f; left: 10%; bottom: -30%; animation: mgA 6s -2s ease-in-out infinite; } .d-mesh .d { background: #2fd6c3; right: 0; bottom: -30%; animation: mgA 9s -6s ease-in-out infinite; }
@keyframes mgA { 0%, 100% { transform: none } 33% { transform: translate(25%, 15%) scale(1.1) } 66% { transform: translate(-15%, 20%) scale(.9) } }
/* grain */
.d-grain .gr { background: linear-gradient(135deg, #ff7b47, #7a5cff); display: grid; place-items: center; }
.d-grain .n { position: absolute; inset: -20%; opacity: .55; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grN .5s steps(4) infinite; }
.d-grain .gr b { position: relative; font: 800 34px/1 var(--sans); letter-spacing: -.04em; color: #fff; mix-blend-mode: overlay; }
@keyframes grN { 0% { transform: translate(0, 0) } 25% { transform: translate(-7%, 4%) } 50% { transform: translate(5%, -6%) } 75% { transform: translate(-3%, -2%) } 100% { transform: translate(0, 0) } }
/* glow */
.d-glow .gw { background: #0d0e14; display: grid; place-items: center; }
.d-glow .btn { padding: 12px 30px; border-radius: 12px; border: 2px solid #7df9ff; color: #dffcff; font: 700 16px var(--sans); letter-spacing: .06em; text-transform: uppercase; animation: gwB 3s ease-in-out infinite; }
@keyframes gwB { 0%, 100% { box-shadow: 0 0 6px #7df9ff, 0 0 14px #2fd6ff88, inset 0 0 8px #2fd6ff55; text-shadow: 0 0 6px #7df9ff } 50% { box-shadow: 0 0 14px #7df9ff, 0 0 40px #2fd6ffcc, inset 0 0 16px #2fd6ff88; text-shadow: 0 0 14px #7df9ff } }
/* spotlight */
.d-spotlight .spl { background: #111; } .d-spotlight .grid { position: absolute; inset: 10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; } .d-spotlight .grid i { border-radius: 9px; background: #1d1d1d; border: 1px solid #2a2a2a; }
.d-spotlight .light { background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.22), rgba(255,255,255,0) 32%); mix-blend-mode: screen; }
/* skeleton */
.d-skeleton .skl { inset: 12% 10%; } .d-skeleton .skl > * { position: absolute; border-radius: 6px; background: linear-gradient(90deg, #e2ded3 30%, #f4f1ea 50%, #e2ded3 70%) 0 0 / 300% 100%; animation: skS 1.5s linear infinite; }
.d-skeleton .av { left: 0; top: 0; width: 16%; aspect-ratio: 1; border-radius: 50%; } .d-skeleton .l1 { left: 22%; top: 3%; width: 50%; height: 9%; } .d-skeleton .l2 { left: 22%; top: 16%; width: 32%; height: 7%; } .d-skeleton .im { left: 0; top: 34%; right: 0; height: 42%; border-radius: 10px; } .d-skeleton .l3 { left: 0; top: 84%; width: 70%; height: 8%; }
@keyframes skS { from { background-position: 100% 0 } to { background-position: -50% 0 } }
/* parallax */
.d-parallax .px { background: linear-gradient(#ffd7b8, #ffeedd); } .d-parallax .px > i { position: absolute; bottom: 0; left: 0; width: 200%; height: 60%; background-repeat: repeat-x; background-size: 50% 100%; }
.d-parallax .sun { width: 18% !important; aspect-ratio: 1; height: auto !important; left: 60% !important; bottom: 50% !important; border-radius: 50%; background: #ff7b47; animation: pxS 6s linear infinite; }
.d-parallax .l3 { background-image: radial-gradient(ellipse 60% 100% at 30% 100%, #f2a07b 60%, transparent 61%), radial-gradient(ellipse 50% 80% at 80% 100%, #f2a07b 60%, transparent 61%); animation: pxL 18s linear infinite; }
.d-parallax .l2 { height: 45% !important; background-image: radial-gradient(ellipse 50% 100% at 20% 100%, #d9603a 60%, transparent 61%), radial-gradient(ellipse 45% 70% at 70% 100%, #d9603a 60%, transparent 61%); animation: pxL 9s linear infinite; }
.d-parallax .l1 { height: 28% !important; background-image: radial-gradient(ellipse 40% 100% at 40% 100%, #5a2412 60%, transparent 61%), radial-gradient(ellipse 30% 80% at 90% 100%, #5a2412 60%, transparent 61%); animation: pxL 4.5s linear infinite; }
@keyframes pxL { to { transform: translateX(-50%) } } @keyframes pxS { 0%, 100% { transform: none } 50% { transform: translateX(-20%) } }
/* easing */
.d-easing .es { inset: 14% 8%; display: flex; flex-direction: column; justify-content: space-between; }
.d-easing p { position: relative; height: 26%; border-bottom: 1px dashed var(--g); } .d-easing p span { font: 500 11px var(--mono); color: #8a867c; }
.d-easing p i { position: absolute; left: 0; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); animation: esM 3s infinite alternate; }
.d-easing .e0 { animation-timing-function: linear; } .d-easing .e1 { animation-timing-function: cubic-bezier(.65,0,.35,1); background: var(--bl); } .d-easing .e2 { animation-timing-function: cubic-bezier(.16,1,.3,1); background: var(--ac); }
@keyframes esM { 0%, 10% { left: 0 } 90%, 100% { left: calc(100% - 16px) } }
/* spring / bounce (JS for spring) */
.d-spring .track { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--g); } .d-spring .ball { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--ac); cursor: grab; box-shadow: 0 4px 10px rgba(255,90,31,.35); }
.d-bounce .floor { position: absolute; left: 20%; right: 20%; bottom: 18%; height: 2px; background: var(--ink); } .d-bounce .ball { position: absolute; left: 50%; bottom: 18%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--bl); animation: bnB 3s infinite; transform-origin: 50% 100%; }
.d-bounce .sh { position: absolute; left: 50%; bottom: calc(18% - 4px); width: 30px; height: 6px; margin-left: -15px; border-radius: 50%; background: rgba(0,0,0,.18); animation: bnS 3s infinite; }
@keyframes bnB { 0% { transform: translateY(-260%); animation-timing-function: cubic-bezier(.55,0,1,.45) } 25% { transform: scale(1.15, .8); animation-timing-function: cubic-bezier(0,.55,.45,1) } 38% { transform: translateY(-110%); animation-timing-function: cubic-bezier(.55,0,1,.45) } 50% { transform: scale(1.08, .9); animation-timing-function: cubic-bezier(0,.55,.45,1) } 58% { transform: translateY(-40%); animation-timing-function: cubic-bezier(.55,0,1,.45) } 66%, 88% { transform: none } 100% { transform: translateY(-260%) } }
@keyframes bnS { 0%, 100% { transform: scale(.3); opacity: .3 } 25%, 50%, 66%, 88% { transform: none; opacity: 1 } 38% { transform: scale(.6) } }
/* stagger */
.d-stagger .stg { inset: 16% 12%; display: flex; flex-direction: column; justify-content: space-between; }
.d-stagger .stg i { height: 9%; border-radius: 4px; background: var(--ink); transform-origin: left; animation: stI 3s calc(var(--i) * .06s) cubic-bezier(.2,.9,.3,1) infinite; } .d-stagger .stg i:nth-child(2n) { width: 70%; background: var(--ac); }
@keyframes stI { 0% { transform: translateX(-30%) scaleX(.2); opacity: 0 } 25%, 80% { transform: none; opacity: 1 } 95%, 100% { transform: translateX(10%); opacity: 0 } }
/* ripple */
.d-ripple .rp { display: grid; place-items: center; } .d-ripple .btn { position: relative; overflow: hidden; width: 50%; height: 30%; border-radius: 14px; background: var(--bl); color: #fff; display: grid; place-items: center; font: 700 16px var(--sans); cursor: pointer; }
.d-ripple .w { position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255,255,255,.5); animation: rpW 1.5s ease-out infinite; } .d-ripple .w1 { animation-delay: -.75s; }
@keyframes rpW { from { transform: scale(0); opacity: 1 } to { transform: scale(9); opacity: 0 } }
/* morph */
.d-morph .mp { display: grid; place-items: center; } .d-morph .mp b { width: 34%; aspect-ratio: 1; background: var(--ac); animation: mpM 6s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes mpM { 0%, 15%, 100% { border-radius: 50%; transform: none; background: var(--ac) } 33%, 48% { border-radius: 18%; transform: rotate(90deg); background: var(--bl) } 66%, 81% { border-radius: 99px; transform: scaleX(1.6) scaleY(.6); background: #1fae6f } }
/* pulse */
.d-pulse .pl { display: grid; place-items: center; } .d-pulse .pl b, .d-pulse .r { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #ff3b30; }
.d-pulse .r { background: transparent; border: 2px solid #ff3b30; animation: plR 1.5s ease-out infinite; } .d-pulse .r1 { animation-delay: -.75s; } .d-pulse .pl span { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); font: 800 12px var(--mono); letter-spacing: .14em; color: #ff3b30; }
@keyframes plR { from { transform: scale(1); opacity: .9 } to { transform: scale(4.2); opacity: 0 } }
/* fade up */
.d-fadeup .fu { inset: 16% 14%; display: flex; flex-direction: column; gap: 9%; } .d-fadeup .fu > * { border-radius: 4px; animation: fuF 3s cubic-bezier(.2,.8,.2,1) infinite; }
.d-fadeup .fu b { height: 18%; width: 70%; background: var(--ink); } .d-fadeup .fu i { height: 8%; background: var(--g); animation-delay: .1s; } .d-fadeup .fu i + i { width: 80%; animation-delay: .2s; } .d-fadeup .fu .btn { height: 16%; width: 34%; border-radius: 99px; background: var(--ac); animation-delay: .3s; }
@keyframes fuF { 0% { transform: translateY(16px); opacity: 0 } 25%, 85% { transform: none; opacity: 1 } 100% { opacity: 0 } }
/* text demos */
.d-typewriter .tw, .d-scramble .scr, .d-splittext .spt, .d-countup .cu, .d-gradtext .gt, .d-underline .un, .d-maskreveal .mr { display: flex; align-items: center; justify-content: center; }
.d-typewriter .tw { font: 600 21px var(--sans); letter-spacing: -.02em; gap: 2px; } .d-typewriter .cur { width: 2px; height: 26px; background: var(--ac); }
.d-scramble .scr { font: 600 26px var(--mono); letter-spacing: .04em; } .d-scramble .scr span { white-space: pre; }
.d-splittext .spt { font: 900 46px/1 var(--sans); letter-spacing: -.03em; overflow: hidden; } .d-splittext .spt span { display: inline-block; animation: spS 3s calc(var(--i) * .07s) cubic-bezier(.2,1.2,.3,1) infinite; }
@keyframes spS { 0% { transform: translateY(110%) rotate(8deg) } 25%, 80% { transform: none } 95%, 100% { transform: translateY(-110%) } }
.d-countup .cu { flex-direction: column; gap: 4px; } .d-countup .num { font: 800 44px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .d-countup .cu span { font-size: 12px; color: #8a867c; }
.d-marquee .mq { display: flex; flex-direction: column; justify-content: center; gap: 10px; } .d-marquee .mq p { display: flex; white-space: nowrap; width: max-content; font: 800 22px/1.3 var(--sans); letter-spacing: -.01em; } .d-marquee .mq p.a { animation: mqA 9s linear infinite; } .d-marquee .mq p.b { background: var(--ac); color: #fff; animation: mqA 6s linear infinite reverse; transform: rotate(-3deg); }
.d-marquee .mq p span { display: block; padding-right: .4em; } @keyframes mqA { to { transform: translateX(-50%) } }
.d-gradtext .gt b { font: 900 44px/1 var(--sans); letter-spacing: -.04em; background: linear-gradient(90deg, #ff5a1f, #7a5cff, #2fd6c3, #ff5a1f) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gtG 3s linear infinite; }
@keyframes gtG { to { background-position: 150% 0 } }
.d-underline .un { flex-direction: column; gap: 12px; } .d-underline a { position: relative; font: 700 22px var(--sans); color: var(--ink); } .d-underline a i { position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%; background: var(--ac); transform-origin: left; animation: unL 3s cubic-bezier(.6,0,.2,1) infinite; } .d-underline a.k i { animation-delay: -1.5s; background: var(--bl); }
@keyframes unL { 0% { transform: scaleX(0); transform-origin: left } 30%, 50% { transform: scaleX(1); transform-origin: left } 50.01% { transform-origin: right } 80%, 100% { transform: scaleX(0); transform-origin: right } }
.d-maskreveal .mr { flex-direction: column; align-items: flex-start; padding-left: 12%; } .d-maskreveal p { overflow: hidden; } .d-maskreveal p span { font: 800 36px/1.06 var(--sans); letter-spacing: -.04em; animation: mrR 3s cubic-bezier(.2,.9,.2,1) infinite; } .d-maskreveal p + p span { animation-delay: .1s; color: var(--ac); }
@keyframes mrR { 0% { transform: translateY(105%) } 25%, 82% { transform: none } 97%, 100% { transform: translateY(-105%) } }
/* interaction demos */
.d-magnetic .mgb { display: grid; place-items: center; } .d-magnetic .btn { padding: 14px 26px; border-radius: 99px; background: var(--ink); color: #fff; font: 700 15px var(--sans); will-change: transform; } .d-magnetic .btn span { display: block; }
.ghost { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(0,0,0,.25); pointer-events: none; }
.d-cursor .cc { cursor: none; } .d-cursor .lk, .d-cursor .lk2 { position: absolute; font: 800 22px var(--sans); letter-spacing: -.02em; } .d-cursor .lk { left: 16%; top: 30%; } .d-cursor .lk2 { right: 18%; top: 58%; color: var(--ac); }
.d-cursor .dot { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); pointer-events: none; } .d-cursor .ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--ink); pointer-events: none; mix-blend-mode: difference; border-color: #fff; }
.d-tilt .tl { display: grid; place-items: center; perspective: 500px; } .d-tilt .card { position: relative; width: 46%; height: 66%; border-radius: 14px; background: linear-gradient(150deg, #2b2b2b, #0e0e0e); padding: 7%; display: flex; flex-direction: column; gap: 8%; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.25); will-change: transform; }
.d-tilt .card b { height: 22%; width: 34%; border-radius: 6px; background: linear-gradient(135deg, #ffd27a, #ff8a3d); } .d-tilt .card i { height: 7%; border-radius: 3px; background: #444; } .d-tilt .card i + i { width: 60%; }
.d-tilt .glare { position: absolute; inset: -50%; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 30%); pointer-events: none; }
.d-reveal .rv .pg { position: absolute; inset: 0 12%; animation: rvP 6s cubic-bezier(.4,0,.2,1) infinite; } .d-reveal .pg i { height: 26%; margin: 6% 0; border-radius: 9px; background: var(--g); animation: rvI 6s cubic-bezier(.2,.9,.3,1) infinite; }
.d-reveal .pg i:nth-child(odd) { background: #cfd8ff; } .d-reveal .pg i:nth-child(1) { animation-name: none; } .d-reveal .pg i:nth-child(2) { animation-delay: .4s } .d-reveal .pg i:nth-child(3) { animation-delay: 1.2s } .d-reveal .pg i:nth-child(4) { animation-delay: 1.9s } .d-reveal .pg i:nth-child(5) { animation-delay: 2.5s } .d-reveal .pg i:nth-child(6) { animation-delay: 3s }
@keyframes rvP { 0%, 5% { transform: none } 65%, 80% { transform: translateY(-120%) } 100% { transform: none } }
@keyframes rvI { 0% { transform: translateY(30px); opacity: 0 } 10%, 75% { transform: none; opacity: 1 } 90%, 100% { transform: translateY(30px); opacity: 0 } }
.d-pagetrans .pa, .d-pagetrans .pb { position: absolute; inset: 0; padding: 12% 10%; display: flex; flex-direction: column; gap: 8%; } .d-pagetrans .pa { background: #fff; } .d-pagetrans .pb { background: var(--ink); animation: ptB 6s infinite; }
.d-pagetrans .pa b, .d-pagetrans .pb b { height: 20%; width: 60%; border-radius: 4px; background: var(--ink); } .d-pagetrans .pb b { background: #fff; } .d-pagetrans .pa i, .d-pagetrans .pb i { height: 7%; border-radius: 3px; background: var(--g); } .d-pagetrans .pb i { background: #444; }
.d-pagetrans .wipe { position: absolute; inset: 0; background: var(--ac); animation: ptW 6s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes ptW { 0%, 20% { transform: translateX(-101%) } 32%, 36% { transform: none } 48%, 70% { transform: translateX(101%) } 70.01% { transform: translateX(-101%) } 82%, 86% { transform: none } 98%, 100% { transform: translateX(101%) } }
@keyframes ptB { 0%, 33.9% { opacity: 0 } 34%, 83.9% { opacity: 1 } 84%, 100% { opacity: 0 } }
.d-shared .list { position: absolute; inset: 12% 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .d-shared .th { border-radius: 10px; } .d-shared .t0 { background: linear-gradient(140deg, #ff9a6b, #ff5a1f); } .d-shared .t1 { background: #cfd8ff; } .d-shared .t2 { background: #ffe08a; } .d-shared .t3 { background: #9be7c4; }
.d-shared .hero { position: absolute; background: #fff; border-radius: 10px; overflow: hidden; animation: seH 6s cubic-bezier(.6,0,.2,1) infinite; } .d-shared .hero s { height: 55%; background: linear-gradient(140deg, #ff9a6b, #ff5a1f); } .d-shared .hero b { height: 10%; width: 50%; margin: 6% 8% 3%; border-radius: 3px; background: var(--ink); animation: seT 6s infinite; } .d-shared .hero i { height: 5%; width: 70%; margin: 0 8%; border-radius: 3px; background: var(--g); animation: seT 6s infinite; }
@keyframes seH { 0%, 15% { left: 10%; top: 12%; width: 39.2%; height: 35%; border-radius: 10px } 35%, 70% { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0 } 90%, 100% { left: 10%; top: 12%; width: 39.2%; height: 35%; border-radius: 10px } }
@keyframes seT { 0%, 25%, 80%, 100% { opacity: 0 } 40%, 65% { opacity: 1 } }
.d-shared .hero s { display: block; } .d-shared .hero { display: block; }
.d-swipe .sw { inset: 14% 10%; display: flex; flex-direction: column; gap: 8px; } .d-swipe .row { position: relative; height: 28%; border-radius: 10px; overflow: hidden; background: #ff3b30; } .d-swipe .del { position: absolute; right: 0; top: 0; bottom: 0; width: 26%; display: grid; place-items: center; color: #fff; font: 700 13px var(--sans); }
.d-swipe .fg { position: absolute; inset: 0; background: #fff; display: flex; align-items: center; gap: 6%; padding: 0 6%; } .d-swipe .fg i { width: 14%; aspect-ratio: 1; border-radius: 50%; background: #ffc9b0; } .d-swipe .fg b { flex: 1; height: 14%; border-radius: 3px; background: var(--g); }
.d-swipe .r1 .fg { animation: swF 6s cubic-bezier(.4,0,.2,1) infinite; } .d-swipe .r1 { animation: swH 6s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes swF { 0%, 15% { transform: none } 30%, 45% { transform: translateX(-26%) } 55%, 90% { transform: translateX(-110%) } 91%, 100% { transform: none } }
@keyframes swH { 0%, 55% { height: 28%; opacity: 1 } 68%, 90% { height: 0; opacity: 1; margin: -4px 0 } 91% { height: 0; opacity: 0 } 100% { height: 28%; opacity: 1 } }
.d-confetti .cf { display: grid; place-items: center; } .d-confetti canvas { position: absolute; inset: 0; width: 100%; height: 100%; } .d-confetti .btn { position: relative; padding: 12px 22px; border-radius: 12px; background: var(--ink); color: #fff; font: 700 14px var(--sans); cursor: pointer; }
.d-modal .dim, .d-modal .box, .d-sheet .dim, .d-tabbar .ph, .d-sheet .ph, .d-sticky .pg, .d-spotlight .light { position: absolute; }
.d-modal .dim, .d-sheet .dim, .d-spotlight .light { inset: 0; }
