Home > Animation > Create Morphing ASCII Art Text Using Pure JavaScript – AsciiMorph
Create Morphing ASCII Art Text Using Pure JavaScript – AsciiMorph

Create Morphing ASCII Art Text Using Pure JavaScript – AsciiMorph

AsciiMorph is a plain JavaScript library which adds a morphing transition effect to your ASCII Art text when switch between them.

AsciiMorph

AsciiMorph is a small stand alone javascript library for rendering ascii art and creations into elements, allowing for them to be changed out with a morphing transition.

Usage

You’ll need an dom element for the ascii’s to be rendered within.

<!-- Pre elements are perfect for this. -->
<pre class="ascii-element">
</pre>

Next up, you will want to initialize the library. The second parameter is the width and height properties you want in your rendering square. The ascii will be rendered centered within them, and fill the rest with white space. Naturally this looks best with monospace fonts.

  Website Demo

About admin