Peeky Password

Developer
Size
2,409 Kb
Views
16,192

How do I make an peeky password?

A password input with a button that toggles obfuscation by changing the input type. This allows the user to show/hide their password.. What is a peeky password? How do you make a peeky password? This script and codes were developed by Lukejacksonn on 30 November 2022, Wednesday.

Peeky Password Previews

Peeky Password - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Peeky Password</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Peeky Password</h1>
<password> <input type="password" placeholder="Password" value="Password123"> <button></button>
</password> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Peeky Password - Script Codes CSS Codes

password { position: relative; display: block; width: 300px; height: 50px;
}
input { width: 100%; height: 100%; padding: 10px; font-size: 16px; outline: 0;
}
button { position: absolute; height: 100%; width: 50px; top: 0; right: 0; background: #424242; cursor: pointer; border: 0; padding: 0; margin: 0; outline: 0;
}
button::before,
button::after { content:''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; margin: auto;
}
/* Eye open */
input[type='password'] + button::before { width: 20px; height: 20px; background: #e0e0e0; border-radius: 15px 0 15px 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); -webkit-transition: height .168s; transition: height .168s;
}
/* Pupil open */
input[type='password'] + button::after { width: 10px; height: 10px; border-radius: 50%; background: #424242;
}
/* Eye closed */
input[type='text'] + button::before { width: 15px; height: 15px; background: transparent; border: 3px solid #e0e0e0; border-radius: 15px 0 15px 0; -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
/* Pupil closed */
input[type='text'] + button::after { width: 3px; height: 30px; border-radius: 0; -webkit-transform: rotate(30deg); transform: rotate(30deg); background: #e0e0e0; -webkit-transition: height .132s; transition: height .132s;
}
/* Demo Styles */
* { box-sizing: border-box;
}
html, body { height: 100%; background: #212121;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
h1 { color: #fff; font-family: helvetica, sans-serif; font-size: 24px; font-weight: bold; margin-bottom: 36px;
}

Peeky Password - Script Codes JS Codes

$('button').on('click', function() { var $inp = $('input'); $inp.attr('type') === 'password' ? $inp.attr('type', 'text') : $inp.attr('type', 'password')
});
Peeky Password - Script Codes
Peeky Password - Script Codes
Home Page Home
Developer Lukejacksonn
Username lukejacksonn
Uploaded November 30, 2022
Rating 4.5
Size 2,409 Kb
Views 16,192
Do you need developer help for Peeky Password?

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!

Lukejacksonn (lukejacksonn) Script Codes
Create amazing art & images 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!