Skip to content

anas-js/nriter.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nriter.js

Simple writing effect.


Usage

CDN

Add it before the <body> close tag

<script src="https://nonehub.github.io/nriter.js/js/nriter.min.js"></script>

Add it before the <head> close tag

<link rel="stylesheet" href="https://nonehub.github.io/nriter.js/css/nriter.min.css" />

Or Download files

Use

Any element add class class="nriter-writ" & data-text="yourTextHere"

Example :

    <h1 class="nriter-writ" data-text="yourTextHere">Text</h1>

If you want to add more than one word, separate them with a mark of ,,

Example :

    <h1
      class="nriter-writ"
      data-text="TextHere,,TextHere"
    >
      Text
    </h1>

Customize


[[[[Speed]]]]

You can control typing speed by using data-speed.

measured in milliseconds.

Example :

    <h1
      class="nriter-writ"
      data-text="TextHere"
      data-speed="1500" 
    >
      Text
    </h1>



[[[[waiting]]]]

Waiting time from the current sentence until changing the sentence to the next sentence. To control it use data-waiting.

measured in milliseconds.

Example :

    <h1
      class="nriter-writ"
      data-text="TextHere"
      data-waiting="1500" 
    >
      Text
    </h1>



[[[[value]]]]

To change a shape ( | ) to another shape, use data-value.

Example :

    <h1
      class="nriter-writ"
      data-text="TextHere"
      data-value="+" 
    >
      Text
    </h1>

License

MIT License

By none


Follow me

instagram