"floating screen"
Bootstrap 4.1.1 Snippet by siberci

<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 ----------> <body> <div class="container"> <div class="reveal-wrapper"> <div class="reveal-content"> <h1>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.</h1> </div> <div class="reveal-top"> <img src="https://www.eatright.org/-/media/homefoodsafety/safetytips/foodpoisoning/10commonfoodsafetymistakes-528922912.jpg" /> </div> </div> </div> </body>
*{ box-sizing:border-box; } body{ background:#808080; text-align:center; color:#FFF; } h1{ margin:0; } .reveal-wrapper{ margin:200px; position:relative; overflow:hidden; } .reveal-wrapper:hover .reveal-top{ left:-100%; border-radius:5px; } .reveal-content{ box-shadow:1px 1px 6px rgba(0,0,0,0.6) inset; padding:0px; color:#000; background:#FFF; border-radius:5px; } .reveal-top{ height:100%; width:100%; background:#1F122C; position:absolute; top:0; left:0; transition:left 0.6s ease; overflow:hidden; border-radius:5px; } .reveal-top img{ height:100%; width:100%; } </style>

Related: See More


Questions / Comments: