开发者

Is html5 useful in animating vector graphics? [closed]

开发者 https://www.devze.com 2023-01-25 07:09 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_如何转开发
Closed. This question needs to be more focused. It is not currently accepting answers.
开发者_如何转开发

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 4 years ago.

Improve this question

Does html5 help developers animate vector graphics in any way? I'm talking about straight key-frame vector animation, such as what flash does.

Is the way to do this basically using javascript to manipulate SVG graphics (such as what http://www.raphaeljs.com does? which is a bit weird to me since it's been supported in browsers for quite some time) or does html5/canvas lend itself someway to vector graphics animation?

I'm just trying to understand what's the "new" way developers will animate vectors on the web if/when flash plug-in eventually dies.

Thanks


There's also CSS animation, which is declarative and can be more efficient because the JavaScript code is not pushing the animation.

But there's nothing inherently wrong with the SVG approach and it's more compatible as well.


Currently there is no alternative for complex animations like the animations you can create with Flash (eg. shape-tweens or animations with 3d or bones), and I personally I think Flash is the way to go if you want crossbrowser killer animation. The Flash IDE offers lots of animation features which are not implemented in any other current web based tool. HTML/css is very limited, since it does not fully support skew/rotation/perspective in all browsers and in HTML you cannot animate background images too. However you can create programmatic tweens (like motion-tweens) with Javascript. At this state of HTML you must be a bit hardcore programmer to get a serious DHTML animation and I think you have to deal with CSS sprites or other blitting techniques to get some performance. Beside animation, Flash offers filtering and blendmodes too, which you would like to use in great animations too.

You can use the animate() function from jQuery for very simple animations (move, fade, slide); you can change properties over time. For a lot of web applications; this could enough. But if you want to animate vectors or want frame based animations; Flash is currently the best choice.

PS. What is wrong with animated GIF's?


This might be interesting in the future. It is a flash to Html5 conversion tool form Adobe. Maybe there is a future on the web where the two technologies converge to a single purpose in stead of being two concurrent technologies side by side.

We may well agree that flash has some drawbacks, closed, slow technology. But I can not believe there is no knowledge in the flash source code, its developers and the large amount of users that could be helpful in the development of Html5. Flash is an easy to use environment for creating animations. Such an environment just does not exist for Html 5. So I believe there is room for flash and Html 5 together.

Edit

You should check out Adobe Edge Preview. a new tool from Adobe for creating rich HTML5 animations.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号