How to create Fingerрrint Scan using HTML & CSS – Solution: Animation Fingerрrint Scan using HTML & CSS with source code, demo, and also how you can execute full program easily. To complete the program you need to follow those steps given bellow
Live Demo
Also Helpful –
Responsive Image Comparison Slider
Animation Fingerрrint Scan using HTML & CSS
Description
Back to coding, To complete this program with debugging free code you have to create two files. The first file is to HTML and the second file gonna be CSS for the style part,
index.html
Create an HTML file named ‘index.html‘ and put those codes given below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<!-- Coding Debugging (https://codingdebugging.com) --> <!DOCTYPE html> <html> <head> <title>Animation Scan Fingerрrint - Coding Debugging</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- My Stylesheet --> <link rel="stylesheet" href="style.css"> <!-- Font Awesome Icon --> <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js" integrity="sha256-KzZiKy0DWYsnwMF+X1DvQngQ2/FxF7MF3Ff72XcpuPs=" crossorigin="anonymous"></script> </head> <body> <div class="scanner-container"> <i class="fas fa-fingerprint"></i> </div> <div class="small-container"> <div class="light"></div> </div> </body> </html> |
style.css
Create a CSS file named ‘style.css‘ and put those codes given below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
* { margin: 0; padding: 0; box-sizing: border-box; } body { width: 100vw; height: 100vh; background: linear-gradient(to bottom right, #e7ebf0, #a5b0bc); display: flex; flex-direction: column; justify-content: center; align-items: center; } .scanner-container { position: relative; width: 150px; height: 150px; background: linear-gradient(to bottom right, #e8ebf0, #9ca6b1); border-radius: 45%; display: flex; align-items: center; justify-content: center; box-shadow: -3px -3px 15px rgba(255, 255, 255, .9), 5px 5px 15px rgba(61, 61, 61, .5); cursor: pointer; outline:none; -webkit-tap-highlight-color: transparent; } .scanner-container::before { position: absolute; top: 0; left: 0; width: 102%; height: 102%; background: linear-gradient(to bottom right, #9ca6b1, #e8ebf0); content: ' '; border-radius: inherit; transition: opacity .1s linear; opacity: 0; } .scanner-container:active::before { opacity: 1; } .scanner-container svg { color: #a9b4c0; font-size: 3rem; transition: ease-in-out .5s; transform: translateY(-10px); opacity: 0; } .scanner-container:active > svg { transform: translateY(5px); opacity: 1; } .small-container { margin: 2rem 0rem; background: linear-gradient(to bottom right, #e8ebf0, #9ca6b1); height: 30px; width: 30px; border-radius: 45%; display: flex; justify-content: center; align-items: center; } .light { width: 30%; height: 30%; background: #fff; box-shadow: 0px 8px 28px 2px rgb(202, 201, 201); transition: ease-in-out .5s; border-radius: 50%; } .scanner-container:active + .small-container > .light { background: rgb(0, 240, 0); box-shadow: 0px 0px 20px 2px rgb(15, 179, 0); } |
Thank you for visiting!
We appreciate you for your precious time. I hope you are learn something from here! If you have any queries about this coding comment down below we will reply ASAP.
Keep coding, Keep debugging!