Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
1
respuesta

Desafio: Hover

Escogí hacer algo simple pero dinámico y colorido.

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hover Personalizado</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="caja">
        <p>Hola soy Joaquín y este es mi código usando hover</p>
    </div>
</body>
</html>

css:

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Krona+One&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.caja {
    width: 250px;
    height: 150px;
    background-color: lightblue;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.caja p {
    font-weight: bold;
    font-family: "Archivo Black", sans-serif;
    color: lightcoral;
    text-shadow: 0 0 3px #FFEDFA;
    transition: color 0.3s ease;
}

.caja:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: lightcoral;
}

.caja:hover p {
    color: lightblue;
    text-shadow: 0 0 3px #FF0000;
}
1 respuesta

Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad