"animated box, animated div., animated border"
Bootstrap 4.1.1 Snippet by Rwdesign

<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="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="box"> <svg><rect></rect></svg> <div class="content"> <h1>ADMEC Multimedia Institute</h1> <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. Duis aute irure dolor in reprehenderit in voluptate velit esse sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> </div>
body { margin: 0; padding: 0; background: #073146; font-family: sans-serif; } .box { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; background: #001e2d; box-sizing: border-box; box-shadow: 0 20px 50px rgba(0,0,0,.5); border:2px solid rgba(0,0,0,.5); } .box .content{ position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border: 2px solid #ffeb3b; padding: 30px; box-shadow: 0 5px 10px rgba(0,0,0,.5); text-align: center; } .box .content h1{ color: #fff; font-size: 30px; margin: 0 0 10px; padding: 0; } .box .content p{ color: #fff; } .box svg, .box svg rect{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; fill: transparent; } .box svg rect{ stroke: #0093ff; stroke-width:4px; stroke-dasharray: 400; animation: animate 3s linear infinite; } @keyframes animate { 0%{ stroke-dashoffset:800; } 100%{ stroke-dashoffset:0; } }

Related: See More


Questions / Comments: