Can something like this be done with JavaScript?

Discussion in 'HTML & Website Design' started by John Dikmen, Mar 21, 2013.

  1. #1
    I am trying to create something like this that I did in FLASH...
    http://www.choreo.com/OSSNHeaderTest/OSSNHeader.html

    So the question is, is there anyway to get one transparent layer of a graphic to animate over a fixed background graphic and loop seamlessly?

    Thanks for any help!
     
    John Dikmen, Mar 21, 2013 IP
  2. Spixels

    Spixels Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #2
    Hi, there are many ways to do this in javascript. You can use jQuery as it would be easy.

    Basically you can have a div for the static background with a width and overflow hidden so anything inside it that is bigger will be hidden instead of sticking outside of the div. And then you can have your images that animate another div inside and have those animate from left to right. You can trigger something that checks if the image is out of view pop back in rotation.

    I know it's vague, but it's some direction. I'd give you some code if I had the time.
    Hope that helps a bit. But yes its definitely do-able.
     
    Spixels, Mar 21, 2013 IP