Colorful flexblock

Developer
Size
2,699 Kb
Views
54,648

How do I make an colorful flexblock?

What is a colorful flexblock? How do you make a colorful flexblock? This script and codes were developed by Alexandr on 10 August 2022, Wednesday.

Colorful flexblock Previews

Colorful flexblock - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>colorful flexbox</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="i-f-1"></div>
<div class="container"> <div class="fl fl-1">1</div> <div class="fl fl-2">2</div> <div class="fl fl-3">3</div> <div class="fl fl-4">4</div> <div class="fl fl-5">5</div> <div class="fl fl-6">6 </div> <div class="fl fl-7">7</div> <div class="fl fl-8">8</div> <div class="fl fl-1">9</div> <div class="fl fl-2">10</div> <div class="fl fl-3">11</div> <div class="fl fl-4">12</div> <div class="fl fl-5">13</div> <div class="fl fl-6">14</div> <div class="fl fl-7">15</div> <div class="fl fl-8">16</div>
</div>
</body>
</html>

Colorful flexblock - Script Codes CSS Codes

body { background: #004; color: white; font-size: 2em;
}
.i-f-1 { display: inline-flex; flex-direction: column;
}
.container { background: white; border: 0px solid #888; display: inline-flex; flex-direction: column; flex-wrap: wrap; align-content: space-around; width: 100%; height: 400px; background: #002;
}
.container .fl { border: 1px solid #555; border-radius: 10px; width: 20%; height: 75px; margin: 10px; text-align: center; text-shadow: 1px 1px 1px #555; animation-name: colorful; animation-duration: 10s; animation-iteration-count: infinite;
}
.container .fl-1 { height: 60px;
}
.container .fl-2 { height: 130px;
}
.container .fl-3 { height: 30px;
}
.container .fl-4 { height: 80px;
}
.container .fl-1, .container .fl-6 { --start-hue: 120;
}
.container .fl-2, .container .fl-7 { --start-hue: 240;
}
.container .fl-3, .container .fl-8 { --start-hue: 0;
}
.container .fl-4 { --start-hue: 60;
}
.container .fl-5 { --start-hue: 180;
}
@keyframes colorful { 0% { background-color: hsl(calc(var(--start-hue)), 100%, 50%); } 12.5% { background-color: hsl(calc(45 + var(--start-hue)), 100%, 50%); } 25% { background-color: hsl(calc(90 + var(--start-hue)), 100%, 50%); } 37.5% { background-color: hsl(calc(135 + var(--start-hue)), 100%, 50%); } 50% { background-color: hsl(calc(180 + var(--start-hue)), 100%, 50%); } 62.5% { background-color: hsl(calc(225 + var(--start-hue)), 100%, 50%); } 75% { background-color: hsl(calc(270 + var(--start-hue)), 100%, 50%); } 87.5% { background-color: hsl(calc(315 + var(--start-hue)), 100%, 50%); } 100% { background-color: hsl(calc(360 + var(--start-hue)), 100%, 50%); }
}
Colorful flexblock - Script Codes
Colorful flexblock - Script Codes
Home Page Home
Developer Alexandr
Username Aortan
Uploaded August 10, 2022
Rating 3
Size 2,699 Kb
Views 54,648
Do you need developer help for Colorful flexblock?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Alexandr (Aortan) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!