Skip to content

TokenKim92/Dotting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotting

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 dotting is gonna be starting from this position.

The basic code is from the YouTuber Interactive Developer, and this video is under this link: https://youtu.be/kpF0n39xXVM

However, this project has been reconstructed in many parts for use later in the project Rotary and to make it as library with webpack.

How to use

Write the url of the image in the constructor of Dotting and call animate on this instance recursively with window.requestAnimationFrame().

const url = './imgs/yeji.png';
const dotting = new Dotting(url);
dotting.resize();
window.requestAnimationFrame(animate);

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

Used tools

  • HTML5
  • CSS3
  • JavaScript

Overview

Dotting

Dotting

Dotting

Page

https://tokenkim92.github.io/Dotting/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published