Notification texts go here Contact Us Buy Now!

Cómo Crear un Efecto de Máquina de Escribir con CSS

Aprende cómo crear un impresionante efecto de máquina de escribir con CSS en este tutorial paso a paso. Añade animaciones de texto a tus proyectos web
jesanre

 

Máquina de Escribir

En este tutorial, te mostraré cómo crear un efecto de máquina de escribir utilizando solo HTML y CSS. Este efecto es genial para agregar dinamismo a tus proyectos web.

Paso 1: Crear el archivo HTML

Crea un archivo llamado index.html y agrega el siguiente código:

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="styles.css">

    <title>Typewriter Effect</title>

</head>

<body>

    <div class="typewriter">

        This is a typewriter effect.

    </div>

</body>

</html>

Paso 2: Crear el archivo CSS

Crea un archivo llamado styles.css y agrega el siguiente código:

.typewriter {

    width: 28ch;

    animation: typing 6s steps(28) 1s forwards, blink .75s step-end infinite;

    white-space: nowrap;

    overflow: hidden;

    border-right: 3px solid;

    font-family: monospace;

    font-size: 2em;

}

@keyframes typing {

    from {

        width: 0;

    }

    to {

        width: 28ch;

    }

}

@keyframes blink {

    50% {

        border-color: transparent;

    }

}

Paso 3: Visualizar el Resultado

Guarda ambos archivos y abre index.html en tu navegador para ver el efecto de máquina de escribir en acción.

Demostración

A continuación, puedes ver una demostración del efecto de máquina de escribir:

Publicar un comentario

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.