Gradient Background Animation




<!DOCTYPE html>
<html>
<head>
<title>Gradeint</title>
</head>
<body>

<div class="text">
Gradient Background Animation
</div>



<style type="text/css">
body{
margin: 0px;
padding: 0px;
font-family: arial;
background-image: linear-gradient(125deg,#2c3e50,#27ae60,#2980b9,#e74c3c,#8e44ad);
background-size: 400%;
animation: bganimation 15s infinite;
}

.text{color: white; text-align: center; text-transform: uppercase;margin: 350px 0; font-size: 22px;}

@keyframes bganimation{
0%{
background-position: 0% 50%;
}

50%{
background-position: 100% 50%;
}

100%{
background-position: 0% 50%;
}
}
</style>
</body>
</html>

Comments

Popular posts from this blog

Right click disable

Moutain

Input Placeholder