Print Button

Size
1,969 Kb
Views
4,048

How do I make an print button?

CSS Before and After magic to demonstrate print functionality.. What is a print button? How do you make a print button? This script and codes were developed by Jordan Checkman on 21 January 2023, Saturday.

Print Button Previews

Print Button - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Print Button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>	<head>	</head>	<body>	<div id="PRINT">print</div>	</body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Print Button - Script Codes CSS Codes

body{	margin: 0;	background: rgb(48, 109, 153);	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;	text-rendering: optimizeLegibility;	-webkit-font-feature-settings: "liga";
}
#PRINT{	display: block;	position: relative;	width: 100px;	height: 40px;	margin: 50px auto;	overflow: hidden;	background: rgba(255,255,255,1);	box-shadow:	0 0 15px rgba(0,0,0,.15),	0 0 1px 1px rgba(0,0,0,.1);	text-transform: uppercase;	line-height: 40px;	text-align: center;	font-weight: bold;	font-size: 1.4em;	-webkit-user-select: none;	-webkit-transition: background .3s;	-webkit-backface-visibility:hidden;	cursor: pointer;
}
#PRINT:active{	background: rgb(220,220,220);
}
#PRINT::before,
#PRINT::after{	content: "";	position: absolute;	width: 100%;	height: 50%;	background: transparent;	left: 0;
}
#PRINT::before{	-webkit-transition: -webkit-transform .3s .2s, background .1s ease-in;
}
#PRINT::after{	-webkit-transform: translate(0, 100%);	-webkit-transition: -webkit-transform .3s .5s, background .1s ease-in;
}
#PRINT:hover::before{	-webkit-transform: translate(100%, 0);	background: rgb(255,255,255);
}
#PRINT:hover::after{	-webkit-transform: translate(100%, 100%);	background: rgb(255,255,255);
}
#PRINT:active::before{	display: none;
}
#PRINT:active::after{	display: none;
}
Print Button - Script Codes
Print Button - Script Codes
Home Page Home
Developer Jordan Checkman
Username JordanC
Uploaded January 21, 2023
Rating 3
Size 1,969 Kb
Views 4,048
Do you need developer help for Print Button?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jordan Checkman (JordanC) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!