ok so putting in the full url seems to get it to work however not how I want it to. It’s back to the drawing board ( adobe ) to try again
Thanks for your help will be back though I think as not going according to plan so far
well putting in the fulpath made it behave strangely. It took away my front page slider ( so you could only see the left of it ) and no animations were visable. The only thing I can think of is the html in the code. In the code ( tutorial ) file it has this:
I never placed this code anywhere as it is the clouds in the body background picture that I am trying to animate ( I mean this body bg with the clouds. So my goal is to move the clouds. Where and how then should I place the id’s above as there are 4 of them?
I would imagine that the above code is relatively central to the parallax scrolling effect, but I’m not sure what you need to place where.
My advice would be to make the most basic demo you can (based on whatever tutorial you are following), then start to add to that, checking each step along the way.
Ok so tried it on my wamp server and it all works but what I mean is that it’s only one html page on there so all I have is basically the header links and function call and the the html in the body
Now trying to get this to work on my real website, the backgroud picture I want to animate is in the body tag itself, so at the moment my background is here:
<body id=“home-blog”> and my css is body { background-image: url(‘images/body-bg.jpg’); } so how to I get the 3 id’s ( #back, #midground, #foreground ) into the body tag for it to work, or am I wrong in thinking the id’s go there. I’m slightly confused
it was worse, the clouds were falling like snow before that! I can get them to go different times and directions. I’m just trying to get them behind all the rest of the content ( ie the menus and sliders etc ) and trying to get the clouds lower ( behind the slider )
GREAT NEWS!!! I figured it out. It was the z-index for the page wrap. It needed to be higher.
So I am left with one more thing to fix / know…
How do I move the clouds down more so they are not so close to the top and how do I move the sun more over to the right?
If I cahnge the top / bottom / right / left in the css the clouds and sun dissapear or get cut off
Nice one!
However, it seems I misunderstood the effect you were aiming for.
I would have called that more of an animated background effect, as I was under the impression that parallax scrolling was an effect that you saw when you, well, scrolled …
However, I just checked wikipedia which says:
Parallax scrolling is a special scrolling technique in computer graphics, wherein background images move by the camera slower than foreground images, creating an illusion of depth ...
So, it seems you were right
This also means that Ali’s function I pointed you at previously wouldn’t have been much use in this case.
Did you get this sorted out?
I just had a look at the site, and they look fine to me.
They disappear behind the main container div, which is what I would have thought was best.
To be honest, all I really wanted initially was to animate the clouds. I had asked previously about this but to no avail then I found this parallax code from code canyon. It seems that parallax consists of 4 different layers all moving at different speeds and directions giving this 3d effect.
I like it and the idea very much!!!
I did sort out the issue after. It seemed that playing with the margins moved the whole layer and there are 4 layers so then each layer was overlapping the other so it required some sitting and thinking on so I kept the layers in the same places and added the extra space to the images themselves, that worked out
Thanks again for all your help - This forum is such a great place for learning! Another great learning curve!