0
I would like to know what CSS structure needs to be applied to get the increase of div
s with a good transition of animation at CSS level of height and width, the internal content of the div
does not need to occur, idea is to be similar to the link below:
https://www.wonderlandindustry.com/
Code I have so far:
main {
height: 100vh;
}
.main_principal {
height: 70vh;
background: #0b4c81;
}
.main_cards {
height: 30vh;
background: #042a3f;
display: -webkit-box;
transition: all .5s;
}
.card {
width: 20%;
padding: 10px 7.5px;
height: 100%;
transition: all .5s;
text-align: center;
position: relative;
}
/*ANIMATION*/
.card:hover {
-webkit-transform: scale(1.3);
-moz-transform: scale(1.3);
-o-transform: scale(1.3);
transform: scale(1.3);
}
/*ANIMATION*/
.card_info {
height: 100%;
background: #0b4c81;
display: flex;
justify-content: center;
flex-direction: column;
color: #ffffff;
}
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<main>
<section class="main_principal"></section>
<section class="main_cards">
<div class="card">
<div class="card_info">
<span>Lorem Ipsum</span>
</div>
</div>
<div class="card">
<div class="card_info">
<span>Lorem Ipsum</span>
</div>
</div>
<div class="card">
<div class="card_info">
<span>Lorem Ipsum</span>
</div>
</div>
<div class="card">
<div class="card_info">
<span>Lorem Ipsum</span>
</div>
</div>
<div class="card">
<div class="card_info">
<span>Lorem Ipsum</span>
</div>
</div>
</section>
</main>
</body>
</html>
Analysis of external sites is not on site scope, but comments remain open if anyone wants to comment on the site in question. You can eventually [Edit] the question if you have any questions about the specific part of programming and, mainly, give more details than you want to do exactly so that the question does not depend on the external link. You might be interested in this: https://threejs.org/
– Bacco
Jack taking this btn from + that keeps following the mouse the rest of the entire gallery you can do only with CSS, nor need JS to do this scheme with the images. As Bacco said edit your answer, post what you already have of code, what you have tried to do and what your doubt or difficulty in performing and so we can help you better.
– hugocsl
You want it to look exactly like the reference site ? Or you want to follow the model you made, but just adjust some things, like don’t let the scroll bar on the page, and don’t let the image grow to?
– hugocsl
That stay close to the structure of the site, I will follow this my template to stay next to the site.
– jack_rs