コンポーネント カルーセルスライダー レトロカルーセルスライダー

レトロカルーセルスライダー

ビジネスWebサイト向けのシンプルでレスポンシブなレトロなテーマのカルーセルスライダーコンポーネントで、ダークモードをサポートし、JavaScriptはありません。

プレビュー

HTMLコード

<div class="relative w-full max-w-4xl mx-auto overflow-hidden rounded-lg shadow-lg">
  <!-- Carousel Wrapper -->
  <div class="relative h-96">
    <!-- Slide 1 -->
    <div class="absolute inset-0 transition-opacity duration-1000 ease-in-out opacity-100" data-carousel-item>
      <img src="https://picsum.photos/seed/retro1/1200/400" alt="Slide 1" class="object-cover w-full h-full">
      <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4">
        <h2 class="text-white text-3xl font-bold font-serif filter drop-shadow">Innovation That Endures</h2>
      </div>
    </div>

    <!-- Slide 2 -->
    <div class="absolute inset-0 transition-opacity duration-1000 ease-in-out opacity-0" data-carousel-item>
      <img src="https://picsum.photos/seed/retro2/1200/400" alt="Slide 2" class="object-cover w-full h-full">
      <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4">
        <h2 class="text-white text-3xl font-bold font-serif filter drop-shadow">Timeless Solutions for Tomorrow</h2>
      </div>
    </div>

    <!-- Slide 3 -->
    <div class="absolute inset-0 transition-opacity duration-1000 ease-in-out opacity-0" data-carousel-item>
      <img src="https://picsum.photos/seed/retro3/1200/400" alt="Slide 3" class="object-cover w-full h-full">
      <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4">
        <h2 class="text-white text-3xl font-bold font-serif filter drop-shadow">Building on a Legacy of Quality</h2>
      </div>
    </div>
  </div>

  <!-- Carousel Navigation (Optional - for visual representation, actual prev/next usually needs JS) -->
  <div class="absolute bottom-0 left-0 right-0 p-4 flex justify-center space-x-2">
    <button class="w-3 h-3 bg-gray-300 rounded-full dark:bg-gray-700"></button>
    <button class="w-3 h-3 bg-gray-500 rounded-full dark:bg-gray-400"></button>
    <button class="w-3 h-3 bg-gray-300 rounded-full dark:bg-gray-700"></button>
  </div>
</div>

<style>
  /* A very basic animation for demonstration, typically this would be handled by JS for a real carousel */
  /* This CSS just cycles opacity for 

関連コンポーネント

カルーセルスライダーコンポーネント

ダークモードをサポートするeコマース用のレスポンシブカルーセルスライダーコンポーネント。商品画像、名前、価格、カートに入れるボタンが特徴です。デザインはダークモードに適した補色を採用し、視覚的な快適性と製品のプレゼンテーションを向上させます。

開ける

Glassmorphismカルーセルスライダー

glassmorphismスタイルのレスポンシブカルーセルスライダーコンポーネントで、ブログやコンテンツの消費に適しています。複数のコンテンツ スライド、すりガラスのような要素が特徴で、明るいテーマと暗いテーマの両方に対応するように設計されています。

開ける

カルーセルスライダーコンポーネント

Tailwind CSSを使用したダークモードでのeコマース用に設計されたシンプルなカルーセルスライダーコンポーネント。

開ける