"Responsive Invoice template"
Bootstrap 4.1.1 Snippet by vijay18399

<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 ----------> <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="style.css" rel="stylesheet"> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600,700" rel="stylesheet"> </head> <body> <div class="menu"> <span></span> </div> <nav id="nav"> <ul class="main"> <li><a data-toggle="tab" href="#route" role="tab" >Bus Route</a></li> <li><a data-toggle="tab" href="#location" role="tab" >Buses By Location</a></li> <li><a data-toggle="tab" href="#details" role="tab" >Bus Details</a></li> <li><a href="#">Notifications</a></li> <li><a href="">BusPoll</a></li> <li><a href="">Contact</a></li> </ul> </nav> <div class="overlay"></div> <div class="container"> <h1> <span>M</span> <span>y</span> <span>B</span> <span>u</span> <span>s</span> </h1> </div> <script> $('.menu, .overlay').click(function () { $('.menu').toggleClass('clicked'); $('#nav').toggleClass('show'); }); </script> </body> </html>
body{background:url(http://ilovehdwallpapers.com/thumbs/animated-classic-bus-on-road--t2.jpg) no-repeat center/cover;font-family: 'Poppins', sans-serif; height:150vh; } html {font-size:14px} /* BURGER MENU ========================================== */ .menu { width: 50px; height: 50px; position: absolute; z-index: 21; right: 1%; } .menu span { position: relative; margin-top: 9px; margin-bottom: 9px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; position: absolute; top: 50%; left: 50%; margin-left: -15px; margin-top: -1.5px; } .menu span, .menu span::before, .menu span::after { display: block; width: 26px; right: 0; height: 3px; background-color: #fccb32; outline: 1px solid transparent; -webkit-transition-property: background-color, -webkit-transform; -moz-transition-property: background-color, -moz-transform; -o-transition-property: background-color, -o-transform; transition-property: background-color, transform; -webkit-transition-duration: 0.3s; -moz-transition-duration: 0.3s; -o-transition-duration: 0.3s; transition-duration: 0.3s; } .menu span::before, .menu span::after { position: absolute; content: ""; } .menu span::before { top: -9px; width:20px } .menu span::after { top: 9px;width: 33px; } .menu.clicked span { background-color: transparent; } .menu.clicked span::before { -webkit-transform: translateY(9px) rotate(45deg); -moz-transform: translateY(9px) rotate(45deg); -ms-transform: translateY(9px) rotate(45deg); -o-transform: translateY(9px) rotate(45deg); transform: translateY(9px) rotate(45deg); width: 33px; } .menu.clicked span::after { -webkit-transform: translateY(-9px) rotate(-45deg); -moz-transform: translateY(-9px) rotate(-45deg); -ms-transform: translateY(-9px) rotate(-45deg); -o-transform: translateY(-9px) rotate(-45deg); transform: translateY(-9px) rotate(-45deg); } .menu.clicked span:before, .menu.clicked span:after { background-color: #ffffff; } .menu:hover { cursor: pointer; } /* NAV ========================================== */ #nav { background: #211316; position: fixed; z-index: 20; top: 0; right: 0; height: 100%; max-width: 250px; width: 100%; padding: 100px 40px 60px 40px; overflow-y: auto; -webkit-transform: translateX(100%); -moz-transform: translateX(100%); -ms-transform: translateX(100%); -o-transform: translateX(100%); transform: translateX(100%); -webkit-transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86); -moz-transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86); -o-transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86); transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86); } #nav.show { -webkit-transform: translateX(0px); -moz-transform: translateX(0px); -ms-transform: translateX(0px); -o-transform: translateX(0px); transform: translateX(0px); } #nav.show ul.main li { -webkit-transform: translateX(0px); -moz-transform: translateX(0px); -ms-transform: translateX(0px); -o-transform: translateX(0px); transform: translateX(0px); opacity: 1; } .menu.clicked { position: fixed; z-index: 99; } #nav.show ul.main li:nth-child(1) { transition-delay: 0.15s; } #nav.show ul.main li:nth-child(2) { transition-delay: 0.3s; } #nav.show ul.main li:nth-child(3) { transition-delay: 0.45s; } #nav.show ul.main li:nth-child(4) { transition-delay: 0.6s; } #nav.show ul.main li:nth-child(5) { transition-delay: 0.75s; } #nav.show ul.main li:nth-child(6) { transition-delay: 0.9s; } #nav.show ul.main li:nth-child(7) { transition-delay: 1.05s; } #nav.show ul.main li:nth-child(8) { transition-delay: 1.2s; } #nav.show ul.main li:nth-child(9) { transition-delay: 1.35s; } #nav.show .about, #nav.show .social, #nav.show ul.sub { -webkit-transform: translateY(0px); -moz-transform: translateY(0px); -ms-transform: translateY(0px); -o-transform: translateY(0px); transform: translateY(0px); opacity: 1; transition-delay: .85s; } @media (min-width: 667px) { #nav { padding: 120px 30px 70px 20px; } } #nav ul.main { list-style-type: none; } #nav ul.main li { -webkit-transform: translateX(40px); -moz-transform: translateX(40px); -ms-transform: translateX(40px); -o-transform: translateX(40px); transform: translateX(40px); opacity: 0; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; float: none; list-style: circle; color: #fff } #nav ul.main li:last-of-type { margin-bottom: 0px; } #nav ul.main li a { color: #ffffff; text-decoration: none; text-transform: uppercase; font-size: 1rem; display: block; padding: 10px 0; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } #nav ul.main li a span { color: #b7ac7f; } #nav ul.main li a:hover { color: #b7ac7f; } #nav ul.sub { list-style-type: none; margin-top: 40px; -webkit-transform: translateY(30px); -moz-transform: translateY(30px); -ms-transform: translateY(30px); -o-transform: translateY(30px); transform: translateY(30px); opacity: 0; -webkit-transition: all 0.4s ease; -moz-transition: all 0.4s ease; -o-transition: all 0.4s ease; transition: all 0.4s ease; } #nav ul.sub li { margin-bottom: 10px; } #nav ul.sub li:last-of-type { margin-bottom: 0px; } #nav ul.sub li a { color: #ffffff; font-family: "Raleway", sans-serif; letter-spacing: 1px; font-size: 0.9rem; text-decoration: none; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } #nav ul.sub li a:hover { color: #b7ac7f; } .menu:hover span{} /* OVERLAY ========================================== */ .overlay { position: fixed; top: 0; left: 0; z-index: 7; width: 100%; height: 100%; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; background-color: #603e82; opacity: 0; visibility: hidden; } .overlay.show { opacity: 0.8; visibility: visible; } // h1 { margin:0; padding:0; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); } h1 span { color:#FCCB32 #8F4C39; background:; padding:10px 20px; font-family:arial; display:table-cell; box-shadow:inset 0 0 5px rgba(0,0,0,.3) , 0 5px 0 #ccc; animation: animate .5s infinite; } @keyframes animate { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } } h1 span:nth-child(1) { animation-delay:.2s; } h1 span:nth-child(2) { animation-delay:.4s; } h1 span:nth-child(3) { animation-delay:.6s; } h1 span:nth-child(4) { animation-delay:.8s; } h1 span:nth-child(5) { animation-delay:.10s; } h1 span:nth-child(6) { animation-delay:.2s; } h1 span:nth-child(7) { animation-delay:.4s; }
$('#printInvoice').click(function(){ Popup($('.invoice')[0].outerHTML); function Popup(data) { window.print(); return true; } });

Related: See More


Questions / Comments: