<div class="_parallax">

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

  <p class="_parallax_img"><img alt="" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22%23404040%22%20d%3D%22M32%2016c8.831%200%2016%207.169%2016%2016s-7.169%2016-16%2016-16-7.169-16-16%207.169-16%2016-16zm0%202c7.727%200%2014%206.273%2014%2014s-6.273%2014-14%2014-14-6.273-14-14%206.273-14%2014-14zm9.167%2018c-1.545%203.531-5.07%206-9.167%206-4.097%200-7.622-2.469-9.167-6h2.239a8%208%200%200013.856%200h2.239zM24%2026.001c2.208%200%204%201.792%204%203.999%200%202.208-1.792%204-4%204a4.001%204.001%200%2001-3.999-4A4.001%204.001%200%200124%2026.001zm16%200A4.001%204.001%200%200143.999%2030c0%202.208-1.792%204-3.999%204-2.208%200-4-1.792-4-4a4.001%204.001%200%20014-3.999z%22%2F%3E%3C%2Fsvg%3E" width="80" height="80" /></p>

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

  <p class="_parallax_img"><img alt="" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22%23404040%22%20d%3D%22M32%2016c8.831%200%2016%207.169%2016%2016s-7.169%2016-16%2016-16-7.169-16-16%207.169-16%2016-16zm0%202c7.727%200%2014%206.273%2014%2014s-6.273%2014-14%2014-14-6.273-14-14%206.273-14%2014-14zm9.167%2018c-1.545%203.531-5.07%206-9.167%206-4.097%200-7.622-2.469-9.167-6h18.334zM24%2026.001c2.208%200%204%201.792%204%203.999%200%202.208-1.792%204-4%204a4.001%204.001%200%2001-3.999-4A4.001%204.001%200%200124%2026.001zm16%200A4.001%204.001%200%200143.999%2030c0%202.208-1.792%204-3.999%204-2.208%200-4-1.792-4-4a4.001%204.001%200%20014-3.999z%22%2F%3E%3C%2Fsvg%3E" width="80" height="80" /></p>

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

  <p class="_parallax_img"><img alt="" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22%23404040%22%20d%3D%22M32%2016c8.831%200%2016%207.169%2016%2016s-7.169%2016-16%2016-16-7.169-16-16%207.169-16%2016-16zm0%202c7.727%200%2014%206.273%2014%2014s-6.273%2014-14%2014-14-6.273-14-14%206.273-14%2014-14zm9.167%2018c-1.545%203.531-5.07%206-9.167%206-4.097%200-7.622-2.469-9.167-6H26l2%202%202-2h4l2%202%202-2h3.167zm.479-9.646a4.002%204.002%200%20011.182%206.475%204.004%204.004%200%2001-6.474-1.183l5.292-5.292zm-19.293.001l5.293%205.292a4.004%204.004%200%2001-6.474%201.182%204.002%204.002%200%20011.181-6.474z%22%2F%3E%3C%2Fsvg%3E" width="80" height="80" /></p>

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="_parallax is-semitransparent">

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

  <p class="_parallax_img"><img alt="" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22%23404040%22%20d%3D%22M32%2016c8.831%200%2016%207.169%2016%2016s-7.169%2016-16%2016-16-7.169-16-16%207.169-16%2016-16zm0%202c7.727%200%2014%206.273%2014%2014s-6.273%2014-14%2014-14-6.273-14-14%206.273-14%2014-14zm9.167%2018c-1.545%203.531-5.07%206-9.167%206-4.097%200-7.622-2.469-9.167-6h2.239a8%208%200%200013.856%200h2.239zM24%2026.001c2.208%200%204%201.792%204%203.999%200%202.208-1.792%204-4%204a4.001%204.001%200%2001-3.999-4A4.001%204.001%200%200124%2026.001zm16%200A4.001%204.001%200%200143.999%2030c0%202.208-1.792%204-3.999%204-2.208%200-4-1.792-4-4a4.001%204.001%200%20014-3.999z%22%2F%3E%3C%2Fsvg%3E" width="80" height="80" /></p>

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

  <p class="_parallax_img"><img alt="" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22%23404040%22%20d%3D%22M32%2016c8.831%200%2016%207.169%2016%2016s-7.169%2016-16%2016-16-7.169-16-16%207.169-16%2016-16zm0%202c7.727%200%2014%206.273%2014%2014s-6.273%2014-14%2014-14-6.273-14-14%206.273-14%2014-14zm9.167%2018c-1.545%203.531-5.07%206-9.167%206-4.097%200-7.622-2.469-9.167-6h18.334zM24%2026.001c2.208%200%204%201.792%204%203.999%200%202.208-1.792%204-4%204a4.001%204.001%200%2001-3.999-4A4.001%204.001%200%200124%2026.001zm16%200A4.001%204.001%200%200143.999%2030c0%202.208-1.792%204-3.999%204-2.208%200-4-1.792-4-4a4.001%204.001%200%20014-3.999z%22%2F%3E%3C%2Fsvg%3E" width="80" height="80" /></p>

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

  <p class="_parallax_img"><img alt="" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20fill%3D%22%23404040%22%20d%3D%22M32%2016c8.831%200%2016%207.169%2016%2016s-7.169%2016-16%2016-16-7.169-16-16%207.169-16%2016-16zm0%202c7.727%200%2014%206.273%2014%2014s-6.273%2014-14%2014-14-6.273-14-14%206.273-14%2014-14zm9.167%2018c-1.545%203.531-5.07%206-9.167%206-4.097%200-7.622-2.469-9.167-6H26l2%202%202-2h4l2%202%202-2h3.167zm.479-9.646a4.002%204.002%200%20011.182%206.475%204.004%204.004%200%2001-6.474-1.183l5.292-5.292zm-19.293.001l5.293%205.292a4.004%204.004%200%2001-6.474%201.182%204.002%204.002%200%20011.181-6.474z%22%2F%3E%3C%2Fsvg%3E" width="80" height="80" /></p>

  <p class="_parallax_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>
body {
  margin: 0;
}
._parallax {
  margin: 50vh 0;
}
._parallax_text {
  background: #404040;
  color: #fff;
  border: solid 32px transparent;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 calc(50% - 320px);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
._parallax.is-semitransparent ._parallax_text {
  opacity: 0.75;
}
._parallax_text:not(:first-child) {
  margin-top: 100vh;
}
._parallax_text:not(:last-child) {
  margin-bottom: -100vh;
}
._parallax_img {
  background: #fff;
  height: 100vh;
  margin: 0;
  position: sticky;
  top: 0;
}
._parallax_img img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.