A Pen by Keyvan Akbary
How do I make an a pen by keyvan akbary?
What is a a pen by keyvan akbary? How do you make a a pen by keyvan akbary? This script and codes were developed by Keyvan Akbary on 29 September 2022, Thursday.
A Pen by Keyvan Akbary - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Keyvan Akbary</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div class="drop default" id="drop-area"> <div class="border"></div> <i class="icon fa fa-cloud-upload icon-default"></i> <i class="icon fa fa-cog icon-processing"></i> <i class="icon fa fa-check icon-success"></i> <i class="icon fa fa-times icon-error"></i> </div> <a href="" data-role="link" data-class="default">Default</a> <a href="" data-role="link" data-class="hover">Hover</a> <a href="" data-role="link" data-class="processing">Processing</a> <a href="" data-role="link" data-class="success">Success</a> <a href="" data-role="link" data-class="error">Error</a>
</body> <script src="js/index.js"></script>
</body>
</html>
A Pen by Keyvan Akbary - Script Codes CSS Codes
body { font-family: Sans-Serif; background-color: #1d1f21; padding: 20px; margin: 0; text-align: center;
}
a { text-decoration: none; color: #373b41; display: inline-block; border-width: 1px; border-style: solid; border-color: #373b41; border-radius: 5px; padding: 10px; transition: 0.5s;
}
a:hover { color: #81a2be; border-color: #81a2be;
}
.drop { margin: 0 auto; margin-bottom: 20px; width: 150px; height: 150px; position: relative; text-align: center;
}
.border { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: transparent; border-radius: 50%; border-width: 2px; border-style: solid; border-color: #373b41; transition: 0.5s;
}
.icon-processing { opacity: 0;
}
.icon-success { opacity: 0;
}
.icon-error { opacity: 0;
}
.drop.default .icon-default { opacity: 1;
}
.drop.default .icon-processing { animation: fadeout 0.5s ease 1;
}
.drop.default .icon-success { animation: fadeout 0.5s ease 1;
}
.drop.default .icon-error { animation: fadeout 0.5s ease 1;
}
.drop.hover .icon-default { animation: pulse 1s ease infinite;
}
.drop.hover .icon-processing { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.hover .icon-success { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.hover .icon-error { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.hover .border { animation: explode 1s ease infinite;
}
.drop.processing .icon-default { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.processing .icon-processing { opacity: 1; animation: fadein 0.5s ease 1, rotate 2s 0.5s linear infinite; color: #81a2be;
}
.drop.processing .icon-success { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.processing .icon-error { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.processing .border { border-color: #81a2be;
}
.drop.success .icon-default { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.success .icon-processing { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.success .icon-success { opacity: 1; color: #b5bd68; animation: fadein 0.5s ease 1;
}
.drop.success .icon-error { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.success .border { border-color: #b5bd68;
}
.drop.error .icon-default { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.error .icon-processing { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.error .icon-success { opacity: 0; animation: fadeout 0.5s ease 1;
}
.drop.error .icon-error { opacity: 1; color: #cc6666; animation: fadein 0.5s ease 1;
}
.drop.error .border { border-color: #cc6666;
}
.icon { height: 150px; line-height: 150px; font-size: 60px; color: #373b41; white-space: nowrap; position: absolute; top: 0; left: 0; right: 0; transition: 0.5s;
}
@keyframes fadein { from { transform: translateX(50px); } to { transform: translateX(0); }
}
@keyframes fadeout { from { transform: translateX(0); } to { transform: translateX(-50px); }
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes explode { 0% { border-color: #373b41; } 50% { border-color: #81a2be; } 100% { border-color: #373b41; }
}
@keyframes pulse { 0% { transform: scale(1); color: #373b41; } 50% { transform: scale(1.1); color: #81a2be; } 100% { transform: scale(1); color: #373b41; }
}
A Pen by Keyvan Akbary - Script Codes JS Codes
const dropArea = document.getElementById('drop-area');
[].forEach.call(document.querySelectorAll('[data-role=link]'), function(link) { link.addEventListener('mouseover', function() { dropArea.className = 'drop ' + this.getAttribute('data-class'); }, false); link.addEventListener('click', function(e) { e.preventDefault(); }, false);
})
Developer | Keyvan Akbary |
Username | keyvanakbary |
Uploaded | September 29, 2022 |
Rating | 3 |
Size | 3,541 Kb |
Views | 16,192 |
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 Keyvan Akbary | 3,684 Kb |
Functional Inheritance | 2,266 Kb |
Trie | 2,756 Kb |
Radix Tree | 3,161 Kb |
A Pen by Keyvan Akbary | 2,866 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 |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
Fun form with currentColor | Bnthor | 2,713 Kb |
About Us | Francescaedits | 1,902 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
Glowing Pulse Form | Jackrugile | 2,542 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
A Pen by Jason Kinney | Jason-kinney | 1,980 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!