<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="jpwebdevelopers">
<link rel="icon" href="images/jplogo.jpeg" type="image/x-icon">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Merienda&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css" rel="stylesheet">
<script href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<title>Flag-themed Web Page</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: black;
}
.flag-container {
width: 300px;
height: 200px;
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
animation: wave 2s infinite linear;
}
.stripe {
height: 33.33%; /* Each stripe takes one-third of the height */
width: 100%;
}
.saffron {
background-color: #FF9933;
}
.white {
background-color: #FFFFFF;
}
.green {
background-color: #138808;
}
.ashoka-chakra {
position: absolute;
bottom: 10px;
margin-bottom: 65px; /* jpwebdevelopers */
left: calc(50% - 30px);
width: 60px;
height: 60px;
background-color: black;
border-radius: 50%;
clip-path: polygon(50% 0%, 61.8% 38.2%, 100% 50%, 61.8% 61.8%, 50% 100%, 38.2% 61.8%, 0% 50%, 38.2% 38.2%);
animation: spin 20s linear infinite;
}
@keyframes wave {
0% {
transform: translateY(0);
}
50% {
transform: translateY(5px);
}
100% {
transform: translateY(0);
}
}
@keyframes spin {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="flag-container">
<div class="stripe saffron"></div>
<div class="stripe white"></div>
<div class="stripe green"></div>
<div class="ashoka-chakra"></div>
</div>
</body>
</html>
0 Comments