olum-writer

0.0.6 • Public • Published

olum-writer

OlumWriter is a lightweight and flexible library for adding an amazing writing effect to your web apps, written in vanilla js

npm npm npm

Documentation

CDN

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Olum Writer</title>
  </head>

  <body>
    <div id="writer"></div>

    <script src="https://unpkg.com/olum-writer@latest/dist/olum-writer.min.js"></script>
    <script>
      new OlumWriter({
        container: document.getElementById("writer"),
        sentences: ["content one", "content two", "content three"],
        interval: 3000, // optional (time between each sentence)
        speed: 1000, // optional (speed of writing each sentence)
        reverse: false, // optional (enable/disable backward writing), default is false
      });
    </script>
  </body>
</html>

ES6 Module

import OlumWriter from "olum-writer";

new OlumWriter({
  container: document.getElementById("writer"),
  sentences: ["content one", "content two", "content three"],
});

Package Sidebar

Install

npm i olum-writer

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

11 kB

Total Files

5

Last publish

Collaborators

  • eissapk