Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is javascript / HTML5 capable of supporting "flash like" animation and drag and drop

With apple browsers not supporting flash or silverlight, there is a real incentive to avoid flash / silverlight to avoid losing that audience when building a web site. That being said there is certain functionality that it seems like you can only really do in flash / silverlight

for example alot of simple games where you can move things on the screen like this site all seem to be built in flash. also, a lot of drag and drop functionality where you can drag one object onto another like these game sites. After lots of searching I can't find any that are not either flash or silverlight based.

In particular i am looking for drag and drop support of one element onto another

my question is if you need this type of functionality is javascript / html 5 able to do this type of stuff (so you can support iphone / ipad) or are you out of luck.

is there any resource that highlight examples or suggestions of trying to do this type of interactive functionality and how / if you can do this type of stuff without silverlight / flash. also, if anyone has any good examples of existing site who are doing that today that would be great as well.

like image 893
leora Avatar asked Apr 22 '11 15:04

leora


People also ask

Can HTML5 replace Flash?

HTML5 has all but replaced Flash, Silverlight, XHTML and other platforms as a safer, more versatile solution on the web.

What is JavaScript and Flash?

Flash and JavaScript are based off ECMAScript. Anything you can do in Flash you can do in JavaScript. JavaScript is a full-featured programming language. It's used to create web applications, video games, particle systems, etc.

Does HTML5 replace JavaScript?

Talking about JavaScript, it's interesting to note that HTML5 will replace the JavaScript APIs in HTML4 documents. Of course, the end-user will not notice that. With HTML5 and JavaScript combined, your web pages become dynamic and well-supported by web browsers, while your content can be made to look lively and fresh.


1 Answers

This is going to be a long discussion about the ability of html5 to compete with flash.

In my opinion jquery is not any close to performance flash or silverlight animation give.

if the comparison is in terms of drag-and-drop, menu dropdowns, fadeIn.fadeOut - jQuery is competitive.

If i will see the jQuery cartoons with lot of layers and objects moving simultaneously - i will probably agree that jQuery has competitive performance.

the things are compare to see the difference:

  1. magnifying glass over the raster picture

  2. smoke/water/fire emulation

  3. compound 3D objects like fractals with deep branches

when HTML5 will have it - then i will agree that it has competitive performance. All that i see today is picture slideshows and couple of games that work on html5.

like image 79
Pavlonator Avatar answered Oct 12 '22 13:10

Pavlonator