<!--
Forum question answer only:
https://www.sitepoint.com/community/t/observe-last-child-by-using-intersection-observer/402042/9
-->
<header>
<h1>Start scrolling</h1>
</header>
<div class="main">
<!-- <div class="BG"></div> -->
<div class="section s1" data-src="https://i.postimg.cc/9QYL3ytR/mobile-camp.png">
<div class="text">
<div style="margin-inline: 20px">
<h1>Our Story</h1>
<div class="story-detail">
<p>
We saw a gap between what people need and what banks offer. It
means millions of us aren't getting the banking experience we
deserve for different reasons.
</p>
</div>
</div>
</div>
</div>
<div class="section s2" data-src="https://i.postimg.cc/9QYL3ytR/mobile-camp.png">
<div class="text">
<div style="margin-inline: 20px">
<div class="story-description">
<p>
Traditional banks don’t focus on customers' experience, their
systems may be slow and outdated, they may prioritize a specific
group of people, or perhaps they lack the ability to innovate,
and so on.
</p>
</div>
</div>
</div>
</div>
<div class="section s3" data-src="https://i.postimg.cc/cLPLS8xW/mobile-desert.png">
<div class="text">
<div style="margin-inline: 20px">
<div class="story-description">
<p>
So since we're passionate about solving problems and bridging
gaps, we looked into and identified the challenges and
capabilities we'll need to build a bank here in the Kingdom.
</p>
</div>
</div>
</div>
</div>
<div class="section s4" data-src="https://i.postimg.cc/mZnqV38T/mobile-birds.png">
<div class="text">
<div style="margin-inline: 20px">
<div class="story-description">
<p>
With the best local and international expertise, we began
building an innovative digital bank designed by and for the
people. We believe that the most effective way to build a bank
for people is to do it with them. This is our philosophy. So, we
started building it with the help of people like you.
</p>
</div>
</div>
</div>
</div>
<div class="section s5" data-src="https://i.postimg.cc/k513m0Fb/mountain.png">
<div class="text">
<div style="margin-inline: 20px">
<div class="story-description">
<p>
At D360, innovation starts with someone’s passion for improving
financial services. To that person, we say: Never stop offering
solutions to your needs. These solutions will not only benefit
you, but will significantly impact the lives of millions.
</p>
</div>
</div>
</div>
</div>
</div>
/*
Forum question answer only:
https://www.sitepoint.com/community/t/observe-last-child-by-using-intersection-observer/402042/9
*/
html,
body {
margin: 0;
padding: 0;
}
h1 {
text-align: center;
margin: 0;
padding: 1rem 0;
}
header {
background: #ccc;
}
header,
footer,
.main {
min-height: 100vh;
}
.section {
min-height: 100vh; /* can't be 105vh as that is bigger than parent*/
display: flex;
z-index: 1;
position: relative;
background-size: cover;
}
.text {
margin: auto;
}
.text p {
font-family: "Lato";
font-style: normal;
font-weight: 500;
font-size: 18px;
line-height: 149%;
color: #263244;
}
.text h1 {
margin-bottom: 20px;
font-family: "Lato";
font-style: normal;
font-weight: 700;
font-size: 50px;
line-height: 0px;
color: #ffffff;
margin-bottom: 50px;
}
.text .story-detail {
width: 321px;
border-radius: 20px;
background: radial-gradient(
76.31% 191.89% at 13.43% 22.19%,
rgba(226, 228, 231, 0.8) 0%,
rgba(228, 228, 229, 0.368) 100%
);
backdrop-filter: blur(10px);
padding: 23px;
}
.text .story-description {
width: 321px;
border-radius: 20px;
background: radial-gradient(
76.31% 191.89% at 13.43% 22.19%,
rgba(226, 228, 231, 0.8) 0%,
rgba(228, 228, 229, 0.368) 100%
);
backdrop-filter: blur(10px);
padding: 23px;
}
/*
.BG {
position: fixed;
height: 100%;
width: 100%;
z-index: 0;
opacity: 1;
top: 0px;
transition: opacity 10s ease-in-out;
background-size: cover;
background-repeat: no-repeat;
}
*/
.s1 {
background: url(https://i.postimg.cc/9QYL3ytR/mobile-camp.png) fixed;
}
.s2 {
background: url(https://i.postimg.cc/9QYL3ytR/mobile-camp.png) fixed;
}
.s3 {
background: url(https://i.postimg.cc/cLPLS8xW/mobile-desert.png) fixed;
}
.s4 {
background: url(https://i.postimg.cc/mZnqV38T/mobile-birds.png) fixed;
}
.s5 {
background: url(https://i.postimg.cc/k513m0Fb/mountain.png) fixed;
}
.section {
background-size: cover; /* change to contain for smaller picture*/
background-position: center;
background-repeat: no-repeat;
}
/*
Forum question answer only:
https://www.sitepoint.com/community/t/observe-last-child-by-using-intersection-observer/402042/9
*/
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.