• 0

Best technology for simple animations CSS3, Jquery or using html5 canvas?


Question

Hi,

I have been looking for the best way to provide simple animations in a website, the animations should be part of a rotating "banner" showcasing featured items on the homepage, I'm using a simple "slider" right now with static images but I'm trying to add a little more eye candy to it.

I have googled that question already, but didn't find an exact answer for my specific needs, what in these 3 solutions can provide:

1- Graceful degradation (Progressive enhancement)

2- Most compatibility

3- Best performance

The first item is the most important, as the website owner (well, my brother :p) wanted a flash slider at first, which I completely hate as I feel flash content has plenty of disadvantages and I wanted a better solution that doesn't depend on a plugin, having a way to do animations that would still allow users with disabled javascript or even disabled images to be able to read the content normally would be great.

Please also note that the animations has to fire only when the "slide" is changed, and if an item is shown first with an animated fade-in for example, it shouldn't show up before completely loading the page (something that drove me crazy with jquery, flash of the content before it disappear again and then show with the animation).

Thank you for reading all of this! :)

3 answers to this question

Recommended Posts

  • 0

You will need to use all 3 technology to get it working right if it's really complex. If it's really simple don't care if it works in older browsers then CSS3 and HTML5 is okay.

  • Like 1
  • 0

I have googled that question already, but didn't find an exact answer for my specific needs, what in these 3 solutions can provide:

1- Graceful degradation (Progressive enhancement)

2- Most compatibility

3- Best performance

Javascript. Canvas and javascipt are essentially the same answer, except you have even less support for canvas. CSS3 can do transitions, yes, but support isn't great and I think that in terms of how CSS should be used, it's a bad idea.

Javascript, however, should degrade perfectly well if the HTML behind it is fundamentally sound, will be the most contemptible, and for something simple like a slider, has no real performance issues.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Let Apple have its way, as customers will eschew Apple in favor of more open solutions--which is what they should be doing anyway!... I'm not a fan of Apple at all, but when the lawyers in the EUC start dictating to companies how their software should be made, I think the companies should just drop the EU altogether as a market. EUC lawyers make a mint every time they levy a fine on a successful American software company. What a racket. The EU consumer should be the final word on what products he buys and which ones he doesn't, but the EUC seeks to put itself into the position of the EU customer, and make those decisions for him, under the guise of "helping him." Q. What do you do when the person at your door says, "Hi! I'm from the government, and I'm here to help you make intelligent buying decisions!" A. Grab your possessions and run for the hills...
    • Just another show from my childhood ruined by wokeness 'politically correct' BS. They should let some things just die out gracefully.
    • "Pot meet kettle" "Is the shoe on the other foot?" "It's only okay when I am lying about stuff" F*** off nigel 
    • Some Doctor Who news... 'Doctor Who' Officially Has a New Streaming Home (AMC+) DOCTOR WHO Christmas Special Canceled, Russell T Davies Leaving Show
    • My Xbox One is already the most power efficient console I've ever owned. Haven't turned the thing on in ten years.
  • Recent Achievements

    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
    • First Post
      X-No-file earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      520
    2. 2
      PsYcHoKiLLa
      210
    3. 3
      +Edouard
      147
    4. 4
      Steven P.
      92
    5. 5
      ATLien_0
      80
  • Tell a friend

    Love Neowin? Tell a friend!