English 中文(简体)
Animated gif or flash (or other) for small animated element on website?
原标题:

I am redesigning a site, and the client is set on keeping a small looping Flash animation that is on the current version.

They have asked if it would be better to replace it with an animated GIF version or to keep the current version, and I don t know the answer (apart from get rid of it!). Is either method preferred?

问题回答

Animated GIF, without a doubt. Much easier to code and maintain.

GIF is very old, and every spam advertisement out there today are using Flash.

Use GIF on mobile and to keep bandwidth low. It is also easier to use an img tag with gif s.

Use Flash if you want better animation control, but it could be blocked by Anti-Ad blockers.

Flash, but use redundancy. Using a library such as SWFObject, you can dynamically load a flash file on top of another element (also called "alternative content"). There is a good tutorial on this which you can find here (it is also listed on the SWFObject website).

So, why flash and not gif? Essentially, this is because of the alternative content solution described above, as you get more versatility in what content you deliver. Mobile users, for example, are going to appreciate a static image (or nothing at all) instead of an animated gif.

Having said that, you will also be able to deliver better animations with flash. And, under certain circumstances, you ll be able to match (or even better) the .swf filesize with the .gif for the same animation.





相关问题
images sliding continuously with <table> and jQuery

I m trying to write a little test page that circulates images through a window (see image). I have colored boxes inside a table (gray border), with each box being a element. <table id="boxes" ...

WPF 3d rotation animations

I have a few 3d rectangles on my screen that I want to pivot around the Y axis. I want to press down with the mouse, and rotate the 3d object to a max rotation, but when the user moves their mouse, ...

Disable Windows 7 touch animation in WPF

In Windows 7 when you touch the screen there is a short animation that occurs at the touch point. In my WPF app I want to display my own touch points, without showing the one supplied by Windows. ...

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Direct 2D gnuplot PNG animation?

Can anyone please confirm that yes/no Gnuplot 4.5 (on CVS) can output 2D animated PNG files? I have numerous datasets but one line that I d like to show iteratively in 3 different places in my graph. ...

Visual State Manager VS Animations in WPF

There is a lot of talk about the simplicity of Visual States and the transitions between them in WPF/Silverlight. I have the need to generate animations dynamically at runtime, to animate the ...

Create a ImageIcon that is the mirror of another one

I ll like to know if there is a way to create a ImageIcon that is the mirror of another ImageIcon. Searching on Google, I found how to do it by using many AWT libraries. Is there a way to do it with ...

how to drag in the animation in iphone application?

Iphone application is using the static co-ordinates to reach at some points in the application,which is based on the button event. But what i want is when i drag the item than it should reach at some ...

热门标签