Problems with PNG Animation

Discussion in 'Programming' started by marktopper, Jun 7, 2012.

  1. #1
    Greeting.


    I am currently working on a project which I need to make a PNG animation.


    I don't want to use GIF as it doesn't support semi transpirant background.


    I have tried APNG, which is animated PNGs, but I could not get that to work for some reason?
    Are APNG supported for browsers?


    I have also tried using this jAni, which is a jQuery plugin to make animations from sprites, but I can only get it to work in Google Chrome, and still there is a problem, cause when I zoom in or out in Chrome the animation gonna be wierd.


    The source of jAni can be found here:
    http://www.ajaxblender.com/jani.html


    And you can see my current project, where I am running jAni:
    http://www.marktopper.dk/goo
    Note: I am running jAni on the fly machine a little down at the page.


    Hope that someone could help me with my PNG Animation Problem.
     
    marktopper, Jun 7, 2012 IP
  2. rkseid

    rkseid Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, its not yet fully supported because its new, I think.

    as wikipedia states:

    "The Animated Portable Network Graphics (APNG) file format is an unofficial extension to the Portable Network Graphics (PNG) specification."

    but just continue, of course it could only become standardized if many people uses it.
     
    rkseid, Jun 7, 2012 IP
  3. marktopper

    marktopper Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    I will keep using it, but will also use a PHP if statement to check if it works for the browser which the user is using to view the site.
    And then if it is not supported I would use something else.

    Does anyone have any ideas for alternatives?
     
    marktopper, Jun 7, 2012 IP
  4. TurningHead

    TurningHead Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    A word of warning, animated PNG files have very little support. I believe it was supported by Firefox in the past for example but they dropped support for it when they noticed that noone was interested in the format. At least that's what I remember, not sure if Animated PNG files do animated in Firefox these days.

    What you COULD do (if Flash is not an option) is to use normal PNG files layered on top of each other using CSS, and then you toggle visibility between each of them using JavaScript at a desired frame rate. Works very badly in poor performing computers but its a little fun to do (at least as an experiment). Not too useful in the real world though.
     
    TurningHead, Jun 7, 2012 IP
  5. marktopper

    marktopper Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    Okay. But how would this javascript looks, cause I am not the best with javascript?
     
    marktopper, Jun 7, 2012 IP
  6. Magento Modules

    Magento Modules Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    .PNG files always getting a Same problem a load time is very slow, that's why i switch to j Query that is great..

    Magento Themes | Magento Modules
     
    Magento Modules, Jun 11, 2012 IP
  7. Nehal

    Nehal Banned

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    What you COULD do (if Flash is not an option) is to use normal PNG files layered on top of each other using CSS, and then you toggle visibility between each of them using JavaScript at a desired frame rate. Works very badly in poor performing computers but its a little fun to do (at least as an experiment). Not too useful in the real world though.
     
    Nehal, Jun 11, 2012 IP
  8. alimumtaz123

    alimumtaz123 Greenhorn

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #8
    I also want this too
     
    alimumtaz123, Jun 12, 2012 IP