Giter VIP home page Giter VIP logo

angularjs-typed-effect's Introduction

AngularJS Typed Effect

This easy-to-use directive applies a (customisable) typed effect to text within an HTML element.

Installation

  1. Install with Bower using bower install angularjs-typed-effect --save or clone this repository.

  2. Include dist/typed-effect.min.js and dist/typed-effect.min.css in your application.

  3. Add angularJSTypedEffect as a dependency for your AngularJS module:

angular.module('yourAppModule', ['angularJSTypedEffect']);

Usage

Insert the typed-effect and text attributes in to the required HTML element(s):

<p typed-effect text="'hi there, I use a typed effect ...'"></p>

Customisation

You also have the option of setting:

  • delay ( default: 0 ) - apply a time delay (in milliseconds) before typing begins.
  • speed ( default: 100 ) - set the typing speed (in milliseconds).
  • cursor ( default: | ) - choose the cursor to use.
  • blink ( default: true ) - specify if the cursor should remain and continue to blink after typing has finished.
  • callback ( default: n/a ) - provide a callback function to be triggered after typing has finished.
<p typed-effect text="'hi there'" delay="500" speed="50" cursor="&blk14;" blink="false" callback="vm.typed()"></p>

Demo

Take a look at this demo of the typed effect and optional settings.

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.