if (pngSequence.speed - 10 <= 0) return;
function increaseSpeed()
pngSequence.speed += 10;
if (pngSequence.speed + 10 >= 1000) return;
function decreaseSpeed()
pngSequence.addTo(tester);
// pngSequence.runOnce();
pngSequence.runLoop();
pngSequence = new PNGSequence("run_cycle.png", 60, 70, 27);
// img url, sprite width, sprite height, number of frames in sequence
var tester = document.getElementById("tester");
// A <div> container with an id "tester"
12345678910111213141516171819202122232425var pngSequence;
I wrote this Javascript class a while back, but have yet to use it. I believe it still could have some use for someone looking to do animation on a transparent (or non) PNG sprite.
A effect using transparent .png files and a subtle mix of Javascript / .
My future plan is to navigate through several “Paralaxed” destinations (demoed in the ) and allow the user to view additional information about the destination, including a Wikipedia synopsis, weather and YouTube videos.
A work in progress, this demo is simply to show some cool layout animations using . It really isn’t much at the moment — the only working action item is the “Info” button in the bottom/left corner.
Phone models were first modeled in and then textured with a .
The following YouTube video demonstrates an project I did about a year ago, completed in Flash using the framework and the .
Jeremy Daley :: Dude mon :: Daleyjem
Комментариев нет:
Отправить комментарий