Jinsi ya Kutengeneza Animated Background Effects kwa CSS
⭐ 1. Animated Gradient Background (Copy & Paste)
<div class="animated-bg">Faulink Animated Background</div>
.animated-bg {
height: 300px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 2rem;
background: linear-gradient(45deg, #0d6efd, #6610f2, #d63384);
background-size: 400% 400%;
animation: gradientMove 10s ease infinite;
}
@keyframes gradientMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
⭐ 2. Floating Blobs Animation (Copy & Paste)
<div class="blob-container">
<div class="blob"></div>
</div>
.blob-container {
height: 300px;
position: relative;
overflow: hidden;
background: #111;
}
.blob {
width: 250px;
height: 250px;
background: #0d6efd;
border-radius: 50%;
position: absolute;
top: 20%;
left: 30%;
filter: blur(40px);
animation: blobMove 6s infinite alternate ease-in-out;
}
@keyframes blobMove {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(80px, -40px) scale(1.3); }
}
⭐ 3. Moving Stripes Animation (Copy & Paste)
<div class="stripes"></div>
.stripes {
height: 300px;
background: repeating-linear-gradient(
-45deg,
#0d6efd,
#0d6efd 20px,
#fff 20px,
#fff 40px
);
background-size: 200% 200%;
animation: moveStripes 4s linear infinite;
}
@keyframes moveStripes {
0% { background-position: 0 0; }
100% { background-position: 200% 200%; }
}
Faida za CSS Animated Backgrounds
✔ No JavaScript needed
✔ Smooth animations
✔ Lightweight & mobile-friendly
✔ Zinapendeza kwa hero sections, headers & landing pages
🔗 Links Za Kujifunza Zaidi
🌐 Faulink Official Website:
https://www.faulink.com/
📘 Jifunze Web Design & Programming:
https://www.faulink.com/excel_mifumo.php
📲 WhatsApp (Msaada wa Haraka):
https://wa.me/255693118509