Untitled
unknown
plain_text
a month ago
3.5 kB
3
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Smiling Girl Animation</title>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #ffd6e7, #fff0f5);
overflow: hidden;
font-family: Arial, sans-serif;
}
.girl {
position: relative;
width: 220px;
height: 320px;
}
/* Face */
.face {
width: 150px;
height: 170px;
background: #f8c9a0;
border-radius: 50%;
position: absolute;
top: 40px;
left: 35px;
z-index: 2;
}
/* Hair */
.hair {
width: 180px;
height: 190px;
background: #3b1f1f;
border-radius: 50%;
position: absolute;
top: 20px;
left: 20px;
z-index: 1;
}
/* Eyes */
.eye {
width: 16px;
height: 16px;
background: #000;
border-radius: 50%;
position: absolute;
top: 75px;
animation: blink 4s infinite;
}
.eye.left {
left: 50px;
}
.eye.right {
right: 50px;
}
@keyframes blink {
0%, 95%, 100% {
height: 16px;
}
97% {
height: 2px;
}
}
/* Smile */
.smile {
width: 55px;
height: 28px;
border-bottom: 5px solid #d6336c;
border-radius: 0 0 50px 50px;
position: absolute;
top: 115px;
left: 48px;
animation: smileMove 2s infinite alternate;
}
@keyframes smileMove {
from {
transform: scaleX(1);
}
to {
transform: scaleX(1.1);
}
}
/* Blush */
.blush {
width: 20px;
height: 10px;
background: pink;
border-radius: 50%;
position: absolute;
top: 105px;
opacity: 0.7;
}
.blush.left {
left: 25px;
}
.blush.right {
right: 25px;
}
/* Body */
.body {
width: 120px;
height: 130px;
background: #ff69b4;
border-radius: 20px;
position: absolute;
top: 190px;
left: 50px;
}
/* Floating Hearts */
.heart {
position: absolute;
color: red;
font-size: 24px;
animation: float 4s infinite;
opacity: 0;
}
.heart:nth-child(1) {
left: 20%;
animation-delay: 0s;
}
.heart:nth-child(2) {
left: 50%;
animation-delay: 1s;
}
.heart:nth-child(3) {
left: 75%;
animation-delay: 2s;
}
@keyframes float {
0% {
bottom: 0;
opacity: 0;
transform: translateY(0);
}
50% {
opacity: 1;
}
100% {
bottom: 100%;
opacity: 0;
transform: translateY(-100px);
}
}
</style>
</head>
<body>
<div class="girl">
<div class="hair"></div>
<div class="face">
<div class="eye left"></div>
<div class="eye right"></div>
<div class="blush left"></div>
<div class="blush right"></div>
<div class="smile"></div>
</div>
<div class="body"></div>
</div>
<div class="heart">❤</div>
<div class="heart">❤</div>
<div class="heart">❤</div>
</body>
</html>Editor is loading...
Leave a Comment