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 |
A Pen by Jordan Checkman | 3,495 Kb |
Pretty | 3,250 Kb |
Awesome Reports | 6,603 Kb |
Contenteditable Test | 1,723 Kb |
Carl Philippe Effect | 1,858 Kb |
Word Slider Demo | 2,387 Kb |
RSW | 3,726 Kb |
Fancy Menu | 2,356 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 |
Simple Responsive Text | Fbrz | 2,282 Kb |
A Pen by Huan Nghiem | Nightshade | 10,646 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
Loading... | Adamjacob | 2,384 Kb |
Scifi-style Radio-based Tab | Aaronchuo | 4,427 Kb |
Twitch JSON API | Jvhti | 2,808 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
700 Synapses Per Second | Silentkrange | 2,138 Kb |
JavaScript Animation | Rcmeisty | 4,581 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 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!