0

I am trying to get the effect of moving background image on a section like in below website.

Just about the footer when you scroll up and down the image behind "FIND A CHIPOTLE" scrolls and moves. I am not able to achieve the desired effect. Please help.

2 Answers 2

1

You can do it using CSS:

background-attachment: fixed;
Sign up to request clarification or add additional context in comments.

2 Comments

They did it with the image as the body's background-image, so the <section class="homepage-chipotle" data-language="en-us,en-ca"> just doesn't have a background.
yes thats what I found, so it confused me even more :P
0

The body of the page has a background image. Most of the divs above it have a white background, but the one where you can see the image scrolling has "background: transparent;" which allows you to see the image attached to the page body. It's not the image itself that is scrolling but the divs above it.

1 Comment

And as HaehnleinMar said, the background image is 'fixed'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.