How to make the background image moving?

Hello!
How to make the background of the block so that when you scroll the browser, the text remained in place, and the background image as if it was moving?
Seen like this between the blocks where the background is just a color, and between them the block where the background is a picture and it creates the effect of movement while scrolling.
Unfortunately the example can't find.
June 5th 19 at 21:27
1 answer
June 5th 19 at 21:29
Solution
background-attachment: fixed
UPD: In the description more suitable https://jsfiddle.net/Vlad_IT/cx2kksLu/
Not quite, here the text is fixed.
https://jsfiddle.net/cx2kksLu/1/
Is the beginning of the site, we turn and reach the part where a bunch of text and flipping through it to create the effect that the picture in the background is not static, and as if alive and moving.

i.e. This block with a height of 400px and a background image 600 for example, but it should all be prolattina for these 400 - Ewell commented on June 5th 19 at 21:32
the parallax? pixelcog.github.io/parallax.js - peggie_Aufderh commented on June 5th 19 at 21:35
Yes - Ewell commented on June 5th 19 at 21:38
then use parallax.js or pure css https://habr.com/post/235531/ - peggie_Aufderh commented on June 5th 19 at 21:41

Find more questions by tags JavaScript