Print Button
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 - 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;
}
Developer | Jordan Checkman |
Username | JordanC |
Uploaded | January 21, 2023 |
Rating | 3 |
Size | 1,969 Kb |
Views | 4,048 |
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!
Name | Size |
Pretty | 3,250 Kb |
A Pen by Jordan Checkman | 3,495 Kb |
Awesome Reports | 6,603 Kb |
Carl Philippe Effect | 1,858 Kb |
Print Button | 1,969 Kb |
RSW | 3,726 Kb |
Fancy Menu | 2,356 Kb |
Contenteditable Test | 1,723 Kb |
Word Slider Demo | 2,387 Kb |
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!
Name | Username | Size |
Webkit decolorize | Fivera | 1,675 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Hc first draft | Stepfray | 5,104 Kb |
Shopping List | Markmurray | 6,015 Kb |
PNotify Demo | Adittmar | 1,731 Kb |
Bootstrap Carousel Fade Transition | Rowno | 2,484 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
Product item | Mymahesh11 | 2,256 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!