Untitled
unknown
plain_text
a year ago
1.5 kB
9
Indexable
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kerze mit Glühender Flamme</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
margin: 0;
}
.kerze {
width: 50px;
height: 150px;
background-color: #f2e1c1;
border-radius: 25px;
position: relative;
}
.docht {
width: 4px;
height: 30px;
background-color: #333;
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
}
.flamme {
width: 10px;
height: 20px;
background-color: #ffb347;
border-radius: 50%;
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
box-shadow: 0 0 10px rgba(255, 180, 0, 0.7);
animation: flammen-animation 1.5s infinite alternate;
}
@keyframes flammen-animation {
0% {
transform: translateX(-50%) scale(1) rotate(0deg);
box-shadow: 0 0 15px rgba(255, 180, 0, 0.7);
}
100% {
transform: translateX(-50%) scale(1.2) rotate(10deg);
box-shadow: 0 0 30px rgba(255, 180, 0, 0.8);
}
}
</style>
</head>
<body>
<div class="kerze">
<div class="docht"></div>
<div class="flamme"></div>
</div>
</body>
</html>
Editor is loading...
Leave a Comment