Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS animating an image

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #37410
    magician11
    Participant

    Hi there,

    So I’m building this site. Every page has a heading with a orangy swirly background. My client wants it to literally move and swirl..
    One of my client’s other sites.. some developer did that by creating a flash animation.

    I’d rather not use flash, and use some css trick or other. I’m wondering about using something like the marquee element to animate it.

    any good suggestions?
    thanks,
    Andrew

    #100236
    noahgelman
    Participant

    use a gif

    #100239
    magician11
    Participant

    ok.. not too experienced with creating gifs.. what’s the simplest way to generate a gif from that image? I know I’ll need to make multiple copies of the same images slightly shifted..

    #100282
    Paulie_D
    Member

    You don’t need a gif…if you look carefully at the flash in the example page you can see that it’s two images glued together and then scrolled horizontally across the screen.

    This should be fairly easy to do with a css animation.

    I’ll have a think.

    #100284
    Paulie_D
    Member

    Yep…that’ll work.

    Example using webkit: http://tinkerbin.com/Y0klVELy

    Of course, you would have to choose a proper image that merges nicely at the repeat stage.

    #100286
    magician11
    Participant

    that’s great, thanks!

    It didn’t seem to work, until I worked out it only works in Chrome (and Safari?). I found some code to add to make it work in Firefox too. But Internet explorer is a fail?

    Here’s where I am up to.

    #100297
    Paulie_D
    Member

    Yes, I only coded the example for webkit…adding Firefox is simple enough, as you have found.

    IE is a different issue as animations are not supported (except for perhaps IE10) so the customer would have to be happy with that.

    If not, then you’ll have to use javascript to do something.

    Glad I could help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.