Floating 3D Squares
🟢 CSS OnlyFloating wireframe 3D-rotated square outlines drifting and spinning upwards on cosmic black.
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-below-preview
Interactive Settings
Medium Rectangle Block
Slot ID: ca-pub-detail-after-customization
Quick Copy Actions
Download File Packages
Keyboard Shortcuts
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-before-related
More in Abstract
Loading Canvas Shader...
Viscous Chrome Fluid
A premium, edge-to-edge liquid chrome and viscous ink simulation responsive to high-velocity mouse cursor tracking.
Loading Canvas Shader...
Kinetic Gravity Well
An abstract, massive orbital simulation constructed from thousands of mathematically precise microscopic kinetic dots that violently react to cursor-driven gravity physics.
Loading Canvas Shader...
Tactile Claymorphic Spheres
Pristine candy-colored claymorphic spheres casting deep, soft lifelike shadows, morphing and reacting beautifully to mouse coordinates.
Floating 3D Squares - CSS-only Abstract background for React & Tailwind
Integrate the Floating 3D Squares directly into your website. This asset is rendered using pure CSS and HTML keyframes. It is optimized for zero layout-shifts and runs with high-performance hardware-accelerated processing.
⚡ Performance Specifications
- Render Mode: CSS-ONLY (CSS-only)
- Fluidity: Locked at 60fps dynamic loop
- Bundle Footprint: Zero external NPM dependencies
- SEO Indexing status: 100% Crawlable static semantic HTML
🛠️ Integration Capabilities
Our templates expose inline design tokens like --color-1 and --color-2 for infinite color palettes. This template is designed to fit inside hero elements, full-screen landing pages, and interactive presentation cards.
Technical Code Reference & Syntaxes for Googlebot & Crawlers
The snippets below display the direct, unminified source code utilized for rendering this background.
HTML & Inline CSS Snippet (Vanilla)
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Floating 3D Squares</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #09090b;
}
:root {
--speed: 12s;
}
.squares-container {
position: relative;
width: 100%;
height: 100%;
background: #09090b;
overflow: hidden;
}
.square-box {
position: absolute;
border: 1px solid rgba(124, 92, 255, 0.25);
background: rgba(124, 92, 255, 0.02);
top: 110%;
}
.sq-1 { width: 60px; height: 60px; left: 20%; animation: square-float var(--speed) linear infinite; }
.sq-2 { width: 100px; height: 100px; left: 55%; animation: square-float 18s linear infinite 2s; }
.sq-3 { width: 40px; height: 40px; left: 80%; animation: square-float 15s linear infinite 5s; }
@keyframes square-float {
0% { transform: translateY(0) rotate(0deg); opacity: 0; }
10% { opacity: 0.8; }
90% { opacity: 0.8; }
100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}
</style>
</head>
<body>
<div class="squares-container">
<div class="square-box sq-1"></div>
<div class="square-box sq-2"></div>
<div class="square-box sq-3"></div>
</div>
</body>
</html>React Component Wrapper (TSX)
import React from 'react';
export default function Floating3DSquaresBackground() {
return (
<div
style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 12s;
}
.squares-container {
position: relative;
width: 100%;
height: 100%;
background: #09090b;
overflow: hidden;
}
.square-box {
position: absolute;
border: 1px solid rgba(124, 92, 255, 0.25);
background: rgba(124, 92, 255, 0.02);
top: 110%;
}
.sq-1 { width: 60px; height: 60px; left: 20%; animation: square-float var(--speed) linear infinite; }
.sq-2 { width: 100px; height: 100px; left: 55%; animation: square-float 18s linear infinite 2s; }
.sq-3 { width: 40px; height: 40px; left: 80%; animation: square-float 15s linear infinite 5s; }
@keyframes square-float {
0% { transform: translateY(0) rotate(0deg); opacity: 0; }
10% { opacity: 0.8; }
90% { opacity: 0.8; }
100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}
` }} />
{/* HTML Structure */}
<div
style={{ width: '100%', height: '100%' }}
dangerouslySetInnerHTML={{ __html: `
<div class="squares-container">
<div class="square-box sq-1"></div>
<div class="square-box sq-2"></div>
<div class="square-box sq-3"></div>
</div>
` }}
/>
</div>
);
}Next.js App Router Component (use client)
'use client';
import React from 'react';
export default function Floating3DSquaresBackground() {
return (
<div
className="w-full h-full relative overflow-hidden"
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 12s;
}
.squares-container {
position: relative;
width: 100%;
height: 100%;
background: #09090b;
overflow: hidden;
}
.square-box {
position: absolute;
border: 1px solid rgba(124, 92, 255, 0.25);
background: rgba(124, 92, 255, 0.02);
top: 110%;
}
.sq-1 { width: 60px; height: 60px; left: 20%; animation: square-float var(--speed) linear infinite; }
.sq-2 { width: 100px; height: 100px; left: 55%; animation: square-float 18s linear infinite 2s; }
.sq-3 { width: 40px; height: 40px; left: 80%; animation: square-float 15s linear infinite 5s; }
@keyframes square-float {
0% { transform: translateY(0) rotate(0deg); opacity: 0; }
10% { opacity: 0.8; }
90% { opacity: 0.8; }
100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}
` }} />
{/* HTML Structure */}
<div
className="w-full h-full"
dangerouslySetInnerHTML={{ __html: `
<div class="squares-container">
<div class="square-box sq-1"></div>
<div class="square-box sq-2"></div>
<div class="square-box sq-3"></div>
</div>
` }}
/>
</div>
);
}Raw CSS Stylesheet Snippet
:root {
--speed: 12s;
}
.squares-container {
position: relative;
width: 100%;
height: 100%;
background: #09090b;
overflow: hidden;
}
.square-box {
position: absolute;
border: 1px solid rgba(124, 92, 255, 0.25);
background: rgba(124, 92, 255, 0.02);
top: 110%;
}
.sq-1 { width: 60px; height: 60px; left: 20%; animation: square-float var(--speed) linear infinite; }
.sq-2 { width: 100px; height: 100px; left: 55%; animation: square-float 18s linear infinite 2s; }
.sq-3 { width: 40px; height: 40px; left: 80%; animation: square-float 15s linear infinite 5s; }
@keyframes square-float {
0% { transform: translateY(0) rotate(0deg); opacity: 0; }
10% { opacity: 0.8; }
90% { opacity: 0.8; }
100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}