Git Product home page Git Product logo

type-this's Introduction

Type-this|

A simple Vanilla JavaScript plugin that animates any message you want. No jQuery is needed. No pretentions, just for fun

Demo

Demo 1 | Demo 2 | Demo 3

Usage

• Download or fork the repository.

• Include the CSS & Javascript file minify or not in your HTML.

• Ensure you have a container within the DOM any element with the class by default "typethis" or the one you want to use, but remember to set it at the className option.

• Initialize your writer.

var typethis = new Typethis();

• Remember you can customize some features

var typethis = new Typethis({
        autoWriting: true,
        autoWritingDelay : 0,
        className : ".typethis",
        delay: 600,
        loop: false,
        speed : [200,600],
        words: ["The sentences", " you want", " to", "be shown"]
    });

Options

autoWriting Starts when the page is loaded or it is fired when an events occurs
autoWritingDelay If autoWriting property is false you could set a trigger to fire it or indicate a delay to start writing.
className The class of the element that the plugin searches within the DOM
delay The time in ms that the sentence is been displayed since it is completed until it is delete
loop Inifinite/Linear
speed Range of time in ms that detemines the speed of the writing
words Your content

Final thoughts

Please, take this Demo as it is, and feel free to download, modify, break, use or destroy this code.

type-this's People

Stargazers

 avatar Mahesh Ambure avatar  avatar  avatar

Watchers

James Cloos avatar Alejandro Mur avatar

Forkers

maheshambure21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.