Friends, the task is this, there is a section "About us" on the site -> Site

It is necessary for me that in scrolling, in the section "About Us" the photo was not fixed, as it is now, and also scrolled, but much slower than the content itself. All I could achieve was to fix it purely, as it is now. Can someone tell you how to add css to get the desired result?

  • I did not understand the question. everything is going well - L. Vadim
  • At the moment, in the section "About Us" content is scrolled, and the background (picture where wedding rings) is fixed. background-attachment: fixed; I want it to also scroll, along with the content, BUT that it scrolls several times slower than the content. I want to apply the parallax effect - WhoIsDT
  • For what you need, CSS alone is not enough, according to the idea you need more JS. - ragmon
  • let it be, it doesn’t matter to me, I need someone to add my code, who has already come across this and did it, since I’ve come across this for the first time) - WhoIsDT
  • one
    what you want to implement is the so-called parallax. library for implementation - parallax.js, example - pixelcog.imtqy.com/parallax.js - nueq

0