Skip to content

codeculturehq/three60

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

three60()

A simple Javascript method that creates a smooth spinnable 360 with inertia for mobile and desktop.

Usage

HTML

<canvas id="hat"></canvas>

Note: three60 will set the dimensions to the canvas element.

Javascript

var hat;
hat = new three60();
hat.init("hat", "./hat/frame-{i}.jpg", 72);

The first argument is the canvas id, the second is the path of the pool of images and the third one is the total number of images (or frames). The "{i}" in the second parameter represents the number on the image's name, in this case it's from 1 to 72.

License

MIT Copyright (c) Juan Cabrera changes by codeculture

About

A simple Javascript method that creates a smooth spinnable 360 with inertia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 90.7%
  • HTML 5.7%
  • CSS 3.6%