RichardBlizzard
RichardBlizzard

Reputation: 41

Flash animations with Javascript?

How does something like this work without Flash?

http://www.dirtyphonebook.com/dashboard/425-205-1921

I right-clicked on it but there's no Flash menu. I love Flash because its stable and works. But is using some sort of Javascript hack for this kind of complex behavior actually a good idea?

Upvotes: 0

Views: 434

Answers (3)

Serge
Serge

Reputation: 1066

The link you sent seems to have been created using SVG (Scalable Vector Graphics). Here is some documentation on how to start animating. There's a library named Raphael that can help you achieve those results.

You could also use a framework like jQuery to animate elements on a page. There's a tutorial on how to animate a cartoon using jQuery found here

Upvotes: 2

liquidleaf
liquidleaf

Reputation: 388

There are quite a few Javascript frameworks that allow for animation (jQuery etc).

It's not a hack - it's creative use of DHTML.

The downside is that Javascript can eat the browser's memory. Flash, on the other hand, runs parallel to the browser (as a separate application) and so can be faster when rendering animated effects. BUT Flash requires the Flash Player plugin, which must be installed separately and may not be available for all browsers and in all devices.

So, both Flash and animation via Javascript have pros and cons.

HTML5, which Apple states will replace Flash, is not yet supported across the board, and will apparently offer even easier animation options.

Hope this helps. Unfortunately this is a "what is your opinion" sort of thing, rather than a cut and dried answer.

Upvotes: 3

Jon W
Jon W

Reputation: 15816

The source code says they used this JS library, Raphael, to do it.

Upvotes: 3

Related Questions