html
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dragón CSS</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #87CEEB;
margin: 0;
}
.dragon-container {
position: relative;
width: 400px;
height: 400px;
}
/* Cuerpo del dragón */
.body {
position: absolute;
width: 200px;
height: 150px;
background-color: #228B22;
border-radius: 50% 40% 60% 40%;
top: 150px;
left: 100px;
box-shadow: inset -20px -10px 40px rgba(0,0,0,0.3);
}
/* Cabeza */
.head {
position: absolute;
width: 120px;
height: 100px;
background-color: #228B22;
border-radius: 50% 50% 40% 40%;
top: 120px;
left: 50px;
transform: rotate(-20deg);
box-shadow: inset -10px -5px 20px rgba(0,0,0,0.3);
}
/* Hocico */
.snout {
position: absolute;
width: 80px;
height: 40px;
background-color: #228B22;
border-radius: 50% 20% 50% 20%;
top: 140px;
left: 10px;
transform: rotate(-10deg);
}
/* Ojos */
.eye {
position: absolute;
width: 25px;
height: 25px;
background-color: #FFD700;
border-radius: 50%;
box-shadow: inset -3px -3px 5px rgba(0,0,0,0.5);
}
.eye.left {
top: 130px;
left: 60px;
}
.eye.right {
top: 125px;
left: 90px;
}
.pupil {
position: absolute;
width: 10px;
height: 10px;
background-color: #000;
border-radius: 50%;
top: 7px;
left: 7px;
}
/* Fosas nasales */
.nostril {
position: absolute;
width: 8px;
height: 12px;
background-color: #1a5f1a;
border-radius: 50%;
}
.nostril.left {
top: 155px;
left: 25px;
}
.nostril.right {
top: 153px;
left: 40px;
}
/* Cola */
.tail {
position: absolute;
width: 150px;
height: 80px;
background-color: #228B22;
border-radius: 20% 80% 80% 20%;
top: 180px;
left: 250px;
transform: rotate(-10deg);
box-shadow: inset -10px -5px 20px rgba(0,0,0,0.3);
}
/* Punta de la cola */
.tail-tip {
position: absolute;
width: 0;
height: 0;
border-left: 30px solid #228B22;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
top: 190px;
left: 380px;
transform: rotate(-10deg);
}
/* Alas */
.wing {
position: absolute;
width: 120px;
height: 150px;
background-color: #32CD32;
clip-path: polygon(20% 0%, 100% 30%, 90% 100%, 0% 70%);
}
.wing.left {
top: 100px;
left: 150px;
transform: rotate(-20deg);
box-shadow: inset -10px -5px 20px rgba(0,0,0,0.3);
}
.wing.right {
top: 120px;
left: 200px;
transform: rotate(10deg) scaleX(-1);
box-shadow: inset 10px -5px 20px rgba(0,0,0,0.3);
}
/* Patas */
.leg {
position: absolute;
width: 30px;
height: 60px;
background-color: #228B22;
border-radius: 40% 40% 50% 50%;
box-shadow: inset -5px -3px 10px rgba(0,0,0,0.3);
}
.leg.front-left {
top: 250px;
left: 120px;
transform: rotate(-10deg);
}
.leg.front-right {
top: 250px;
left: 160px;
transform: rotate(10deg);
}
.leg.back-left {
top: 240px;
left: 220px;
transform: rotate(-5deg);
}
.leg.back-right {
top: 240px;
left: 250px;
transform: rotate(5deg);
}
/* Garras */
.claw {
position: absolute;
width: 8px;
height: 15px;
background-color: #fff;
border-radius: 50% 50% 0 0;
bottom: -10px;
}
.claw:nth-child(1) { left: 5px; }
.claw:nth-child(2) { left: 11px; }
.claw:nth-child(3) { left: 17px; }
/* Espinas dorsales */
.spike {
position: absolute;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 25px solid #1a5f1a;
}
.spike:nth-child(1) {
top: 110px;
left: 110px;
transform: rotate(-10deg);
}
.spike:nth-child(2) {
top: 100px;
left: 140px;
}
.spike:nth-child(3) {
top: 105px;
left: 170px;
transform: rotate(10deg);
}
/* Fuego */
.fire {
position: absolute;
top: 150px;
left: -30px;
animation: flicker 1s infinite alternate;
}
.flame {
position: absolute;
width: 40px;
height: 60px;
background: linear-gradient(to top, #ff4500, #ffa500, #ffff00);
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
opacity: 0.9;
}
.flame:nth-child(2) {
width: 30px;
height: 45px;
left: 25px;
top: 10px;
transform: rotate(30deg);
}
.flame:nth-child(3) {
width: 25px;
height: 35px;
left: 45px;
top: 20px;
transform: rotate(-20deg);
}
@keyframes flicker {
0% { transform: scale(1) rotate(-2deg); }
100% { transform: scale(1.1) rotate(2deg); }
}
</style>
</head>
<body>
<div class="dragon-container">
<!-- Fuego -->
<div class="fire">
<div class="flame"></div>
<div class="flame"></div>
<div class="flame"></div>
</div>
<!-- Ala trasera -->
<div class="wing right"></div>
<!-- Cola -->
<div class="tail"></div>
<div class="tail-tip"></div>
<!-- Patas traseras -->
<div class="leg back-left">
<div class="claw"></div>
<div class="claw"></div>
<div class="claw"></div>
</div>
<div class="leg back-right">
<div class="claw"></div>
<div class="claw"></div>
<div class="claw"></div>
</div>
<!-- Cuerpo -->
<div class="body"></div>
<!-- Espinas dorsales -->
<div class="spike"></div>
<div class="spike"></div>
<div class="spike"></div>
<!-- Ala delantera -->
<div class="wing left"></div>
<!-- Patas delanteras -->
<div class="leg front-left">
<div class="claw"></div>
<div class="claw"></div>
<div class="claw"></div>
</div>
<div class="leg front-right">
<div class="claw"></div>
<div class="claw"></div>
<div class="claw"></div>
</div>
<!-- Cabeza -->
<div class="head"></div>
<div class="snout"></div>
<!-- Ojos -->
<div class="eye left">
<div class="pupil"></div>
</div>
<div class="eye right">
<div class="pupil"></div>
</div>
<!-- Fosas nasales -->
<div class="nostril left"></div>
<div class="nostril right"></div>
</div>
</body>
</html>
Este dragón está creado completamente con HTML y CSS. Incluye:
El fuego tiene una animación sutil que lo hace parpadear. Puedes modificar los colores, tamaños y posiciones según tus preferencias.