3d-carousel-js - demo 2
by velo_ninja
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>plug-OptionPanel β Ultimate Demo</title>
<style>
body{margin:0;padding:24px;background:#05080f;color:#e2e8f0;font-family:system-ui}
#app{max-width:950px;margin:0 auto}
.page-header{text-align:center;padding:24px 0;border-bottom:1px solid #1e293b;margin-bottom:24px}
.page-header h1{margin:0;font-size:24px;background:linear-gradient(135deg,#38bdf8,#818cf8,#f472b6);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
</style>
</head>
<body>
<div class="page-header">
<h1>ποΈ Premium Collection</h1>
<p>100% by <code>plug-OptionPanel</code> β’ All 20 Options Working β’ Auto-Rebuild Engine</p>
</div>
<div id="app"></div>
<script>
/**
* plug-OptionPanel v5.1.0-HARMONIZED
*
* π― MODULAR PLUGIN ARCHITECTURE
* β OptionPanelCore β Orchestrator with lifecycle & preset registry
* β CSSManager β Reference-counted, scoped CSS injection
* β PresetBase β Abstract base for all carousel/plugins
* β CarouselPreset β Ultimate carousel (2D/3D, ghost, infinite, dots[1,3,5,7,9])
* β SectionBuilder β Chainable fluent API (backward compatible)
* β Container β Instance wrapper with state management
* β InlinePanelBuilder β Compact floating settings panels (FULL CSS)
*
* π§ HARMONIZATION FIXES (v5.1.0):
* β Container.spoiler() accepts boolean | object | undefined
* β Complete inline panel CSS (op-inline-*) β fully styled
* β Animation keyframes (slide-down, fade, scale-in, bounce, etc.)
* β Position classes (up-right, down-left, etc.)
* β Inline grid uses configured cols/gap (not hardcoded column flow)
* β Inline spoiler with proper max-height/opacity transitions
* β Removed dead external script dependencies
* β 2D/3D mode switching with state preservation
* β Configurable dots count [1,3,5,7,9], center-selected, clickable
* β Ghost item as rotation separator
* β Infinite...
JavaScript
import Carousel3D from "3d-carousel-js";
customElements.define("carousel-3d", Carousel3D);