"hover zoom in "
Bootstrap 4.1.1 Snippet by karimsharf12252

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="box"> <div class="imgBox"> <img src="https://www.planwallpaper.com/static/images/1730832.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://www.planwallpaper.com/static/images/6813800-toy-car-wallpaper-hd_SBxvMEh.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://www.planwallpaper.com/static/images/cool-wallpaper-5_G6Qe1wU.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://www.planwallpaper.com/static/images/beach-cool-wallpaper-hd_1_tKvqLtf.jpg"> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://i.pinimg.com/originals/18/14/9a/18149afc5f3901fc22be42aef0d1463c.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://www.planwallpaper.com/static/images/HD-Wallpapers-B1.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://wallpaperclicker.com/storage/wallpaper/house-hd-wallpaper-desktop-41945952.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> <div class="box"> <div class="imgBox"> <img src="https://www.planwallpaper.com/static/images/96d186ef9ae1d063b50bc1d9a03af5cc--mobile-wallpaper-photo-wallpaper.jpg"> </div> <div class="details"> <div class="content"> <h2>Prakash Prajapati</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing 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. </p> </div> </div> </div> </div>
body { margin: 0; padding: 0; background: #262626; font-family: sans-serif; } .container { min-width: 1380px; margin: 70px auto 0; display: flex; flex-direction:row; flex-wrap:wrap; } .container .box { position: relative; width: 300px; height: 300px; margin: 10px; box-sizing:border-box; display: inline-block; } .container .box .imgBox { position: relative; overflow: hidden; width: 300px; height: 300px; } .container .box .imgBox img { width: 100%; height: 100%; transition: transform 2s; } .container .box:hover .imgBox img { transform: scale(1.2); } .container .box .details { position: absolute; top: 10px; right: 10px; left: 10px; bottom: 10px; background: rgba(0,0,0,0.8); transform: scaleY(0); transition: transform 1s; } .container .box:hover .details { transform: scaleY(1); } .container .box .details .content { position: absolute; top: 50%; transform: translateY(-50%); text-align: center; padding: 15px; color: #fff; } .container .box .details .content h2 { margin: 0; padding: 0; font-size:22px; color: #ff0; } .container .box .details .content p { margin: 10px 0 0; font-size:12px; padding: 0; }

Related: See More


Questions / Comments: