jQuery GIF Animations

前端 未结 6 861
挽巷
挽巷 2021-01-05 23:16

I\'m looking to use jQuery to remove the need of using a GIF\'s to create a fairly simple animation.

What I want is an image to have four stages. 1) Nothing showing

6条回答
  •  醉酒成梦
    2021-01-05 23:49

    Use animated GIFs - this is what they are made for. I'm sure its possible to hack together a solution using JQuery, but you would pay a cost in added development time and complexity.

    Additionally, you should recognize that by going with a customized JQuery/CSS solution, you are making a decision to tightly couple your animation to the page that its on. What if someone wants to include the animation on a different page? They would have to copy over a bunch of code instead of a single GIF file. What if someone wants to include it in an email or Power-point presentation? Can't be done...

提交回复
热议问题