Skip to content

TokenKim92/TypographyDot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypographyDot

A project to show how many animation effects can be shown in HTML5. This project is packaged as a library with webpack to reuse more easier.

Click anywhere on the screen, then text is drawn from this location, and when moving the mouse over the text the letter activates.

How to use

Write a font name and a text which should be written in the constructor of DotKineticText(fontName, text) and call animate on this instance recursively with window.requestAnimationFrame().

const fontName = 'Arial';
const text = 'JS';
const fotKineticText = new DotKineticText(fontName, text);
fotKineticText.resize();
window.requestAnimationFrame(animate);

function animate(curTime) {
  fotKineticText.animate(curTime);
  window.requestAnimationFrame(animate);
}

Used tools

  • HTML5
  • CSS3
  • JavaScript

Overview

TypographyDot

TypographyDot

TypographyDot

Page

https://tokenkim92.github.io/TypographyDot/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published