免費轉換器

3D CSS 立方體 產生器

使用自訂顏色、大小和效果產生3D CSS立方體動畫。即時複製產生的HTML和CSS程式碼。

厚度: 0px
預覽
產生的程式碼
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>3D CSS Cube</title>
  <style>
    body {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      margin: 0;
      background: #1a1a2e;
    }

    @keyframes cubeRotateY {
      from { transform: rotateX(0deg) rotateY(0deg); }
      to   { transform: rotateX(0deg) rotateY(360deg); }
    }
    
    /* Cube Scene */
    .cube-scene {
      perspective: 800px;
      width: 120px;
      height: 120px;
    }
    
    /* Cube */
    .cube {
      width: 120px;
      height: 120px;
      position: relative;
      transform-style: preserve-3d;
      animation: cubeRotateY 4s linear infinite;
    }
    
    /* All Faces */
    .cube-face {
      position: absolute;
      width: 120px;
      height: 120px;
      
      opacity: 1;
      backface-visibility: visible;
    }
    
    /* Individual Faces */
    .cube-face--front  { background: #ff6b6b;  transform: translateZ(60px); }
    .cube-face--back   { background: #4ecdc4;   transform: rotateY(180deg) translateZ(60px); }
    .cube-face--left   { background: #45b7d1;   transform: rotateY(-90deg) translateZ(60px); }
    .cube-face--right  { background: #f9ca24;  transform: rotateY(90deg)  translateZ(60px); }
    .cube-face--top    { background: #6c5ce7;    transform: rotateX(90deg)  translateZ(60px); }
    .cube-face--bottom { background: #a8e6cf; transform: rotateX(-90deg) translateZ(60px); }
  </style>
</head>
<body>
  <div class="cube-scene">
    <div class="cube">
    <div class="cube-face cube-face--front"></div>
    <div class="cube-face cube-face--back"></div>
    <div class="cube-face cube-face--left"></div>
    <div class="cube-face cube-face--right"></div>
    <div class="cube-face cube-face--top"></div>
    <div class="cube-face cube-face--bottom"></div>
    </div>
  </div>
</body>
</html>

關於此工具

直接在瀏覽器中使用 Css3D 立方體產生器建立和自訂內容。配置您的首選項、產生輸出並下載或複製結果。一切都在客戶端運行——您的資料保持私密且處理是即時的。

使用方法

  1. 配置設定和選項以滿足您的要求。
  2. 點擊“生成”以建立輸出。
  3. 預覽結果並根據需要進行調整。
  4. 下載輸出檔案或將其複製到剪貼簿。

常見問題

我可以自訂生成的輸出嗎?
是的。該工具提供了各種自訂選項,可根據您的特定需求自訂輸出。在生成之前調整設置,或使用不同的選項重新生成。
產生的內容可以免費使用嗎?
是的。您使用此工具產生的所有內容都可以用於個人、教育或商業目的,沒有任何限製或歸屬要求。
這個需要帳號嗎?
不需要。該工具無需註冊、無需電子郵件、無需註冊即可立即使用。只需打開頁面並開始生成。
我的輸入資料是否保密?
是的。所有處理都發生在您的瀏覽器中。您的輸入資料和產生的輸出永遠不會發送到任何外部伺服器。