Calligraphy Animation
Check the demo at https://abhay07.github.io/text-to-svg/
How to Use
1. Directly using in html (without webpack)
Include https://s3.us-east-2.amazonaws.com/writing-animation/main.js in your web page
WritingAnimation.animateText takes two argument
1.Text to animate
2 Id of the dom element
Code sample
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body><div id="test"></div></body><script defer type="text/javascript" src="https://s3.us-east-2.amazonaws.com/writing-animation/main.js"></script></body><script defer>let writingAnimation = WritingAnimationdefault;document;</script></html>
2. Using it as es6 module (with webpack)
yarn add svg-calligraphy
using yarn
npm install svg-calligraphy
if using npm
Code sample
;/* load methods takes font file location as an argument */WritingAnimation
License
MIT
Credit
This repo has been forked from https://github.com/shrhdk/text-to-svg