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);