If you're ready to elevate your web design game, we've got something special for you! Behold our Mind-Blowing CSS Animation Examples that come complete with free code and live demos. Powered by the dynamic duo of HTML and CSS, this project showcases a symphony of animations that will leave your users in awe.
Harnessing the flexibility of flexbox, we've ensured a seamless and visually captivating layout that effortlessly adapts to various screen sizes. The real magic, however, unfolds with the mesmerizing hover effects on the images, injecting a dose of interactivity to captivate and engage your audience.
Now, brace yourself for the exciting part — you can grab the entire source code of this animation extravaganza for absolutely free. Take a deep dive into this post, snatch the code, and effortlessly run it in your preferred code editor. Unleash the creativity, and happy coding!
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS animation</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="untoldcoding">
<img src="./ram.jpg" alt="" />
<h1>
<span>J</span>
<span>a</span>
<span>i  </span>
<span>  S</span>
<span>h</span>
<span>r</span>
<span>i</span>
<span> </span>
<span>  R</span>
<span>a</span>
<span>m</span>
</h1>
</div>
</body>
</html>
CSS CODE
@import url("https://fonts.googleapis.com/css?family=Luckiest+Guy");
body {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: black;
background-image: -webkit-linear-gradient(90deg, black 0%, steelblue 100%);
background-attachment: fixed;
background-size: 100% 100%;
overflow: hidden;
font-family: "Luckiest Guy", cursive;
-webkit-font-smoothing: antialiased;
}
img {
width: 100%;
height: 120%;
opacity: 0.2;
}
::selection {
background: transparent;
}
body:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
width: 0;
height: 0;
margin: auto;
border-radius: 100%;
background: transparent;
display: block;
box-shadow: 0 0 150px 100px rgba(255, 255, 255, 0.6),
200px 0 200px 150px rgba(255, 255, 255, 0.6),
-250px 0 300px 150px rgba(255, 255, 255, 0.6),
550px 0 300px 200px rgba(255, 255, 255, 0.6),
-550px 0 300px 200px rgba(255, 255, 255, 0.6);
}
h1 {
cursor: default;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100px;
margin: auto;
display: block;
text-align: center;
}
h1 span {
position: relative;
top: 20px;
display: inline-block;
-webkit-animation: bounce 0.3s ease infinite alternate;
font-size: 80px;
color: #fff;
text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc,
0 5px 0 #ccc, 0 6px 0 transparent, 0 7px 0 transparent, 0 8px 0 transparent,
0 9px 0 transparent, 0 10px 10px rgba(0, 0, 0, 0.4);
}
h1 span:nth-child(2) {
-webkit-animation-delay: 0.1s;
}
h1 span:nth-child(3) {
-webkit-animation-delay: 0.2s;
}
h1 span:nth-child(4) {
-webkit-animation-delay: 0.3s;
}
h1 span:nth-child(5) {
-webkit-animation-delay: 0.4s;
}
h1 span:nth-child(6) {
-webkit-animation-delay: 0.5s;
}
h1 span:nth-child(7) {
-webkit-animation-delay: 0.6s;
}
h1 span:nth-child(8) {
-webkit-animation-delay: 0.2s;
}
h1 span:nth-child(9) {
-webkit-animation-delay: 0.3s;
}
h1 span:nth-child(10) {
-webkit-animation-delay: 0.4s;
}
h1 span:nth-child(11) {
-webkit-animation-delay: 0.5s;
}
h1 span:nth-child(12) {
-webkit-animation-delay: 0.6s;
}
h1 span:nth-child(13) {
-webkit-animation-delay: 0.7s;
}
@-webkit-keyframes bounce {
100% {
top: -20px;
text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc,
0 5px 0 #ccc, 0 6px 0 #ccc, 0 7px 0 #ccc, 0 8px 0 #ccc, 0 9px 0 #ccc,
0 50px 25px rgba(0, 0, 0, 0.2);
}
}