-3
I would love to learn this effect on the advantages of the app on the site https://www.linx.com.br/payhub/shopbit/? gclid=Eaiaiqobchmi65qb46-n3wIVEoORCh1Xxg9iEAAASAEgJlS_D_BwE
Does anyone know how to make that effect seen above?
I tried this way using parallax
and border-image
together with the tabs
of Bootstrap 4
body {
position: relative;
}
ul.nav-pills {
top: 20px;
position: fixed;
}
div.col-8 div {
height: 500px;
}
.borda {
border: 10px solid transparent;
padding: 15px;
border-image-source: url(phone.png);
border-image-repeat: round;
border-image-slice: 30;
border-image-width: 20px;
}
.parallax {
/* The image used */
background-image: url('https://img.elo7.com.br/product/zoom/FBCE34/adesivo- paisagem-praia-decorando-com-adesivos.jpg');
height: 100%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
<div class="container">
<div class="row">
<nav class="col-sm-3 col-4" id="myScrollspy">
<ul class="nav nav-pills flex-column">
<li class="nav-item">
<a class="nav-link active" href="#section1">Section 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section2">Section 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section3">Section 3</a>
</li>
</ul>
</nav>
<div class="col-sm-3 col-3 borda">
<div class="parallax"></div>
<div id="section1" class="bg-success">
<h1>Section 1</h1>
<p>Try to scroll this section and look at the navigation list while scrolling!</p>
</div>
<div class="parallax"></div>
<div id="section2" class="bg-warning">
<h1>Section 2</h1>
<p>Try to scroll this section and look at the navigation list while scrolling!</p>
</div>
<div class="parallax"></div>
<div id="section3" class="bg-secondary">
<h1>Section 3</h1>
<p>Try to scroll this section and look at the navigation list while scrolling!</p>
</div>
</div>
</div>
</div>
It would be interesting if you put in your question some more details, or if you already have some code would help. This is a very quiet model to do, and there are several different ways to do it including only with CSS which is what I suggest...
– hugocsl
ah yeah, so I don’t have any code yet, I tried a few things I researched, but unsuccessfully so I asked here. would like to know how to do or where to start
– annyk
Anything you’ve ever tried can give you an idea of the problem you’re having. That’s the point of the site, we’re here to help you understand and solve a problem. Not to deliver a code ready, which ultimately would not help you grow at all, you understand. Try to tell us where your difficulty is, or exactly how far you’ve come and grabbed it because you no longer know how to proceed. It doesn’t need to be a beautiful example = the link, but something more basic just for you to test the dynamics and to work understand.
– hugocsl
You can always open the developer tools and inspect the elements in question; so you will see which elements and which properties were used and seek to learn them.
– Woss
Of course, I added the code I tried to do. Thank you guys
– annyk