Resizable mail icon
How do I make an resizable mail icon?
A beautiful, flat, simple mail icon. Click for new mails, change the font-size to resize the icon.. What is a resizable mail icon? How do you make a resizable mail icon? This script and codes were developed by Jaflo on 12 September 2022, Monday.
Resizable mail icon - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Resizable mail icon</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { font-size: 100px; background: url(https://subtlepatterns.com/patterns/squairy_light.png);
}
#mail { height: 0.5em; width: 0.6em; padding: 0.25em 0.2em; background: dodgerblue; position: absolute; top: 50%; left: 50%; margin-top: -0.5em; margin-left: -0.5em; transition: transform .2s; box-shadow: 0 0 10px rgba(0,0,0,0.7); -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer;
}
#mail:active { transform: scale(0.9);
}
#mail > div { width: 0.6em; height: 0.5em; background: #eee; z-index: 1; margin-bottom: -0.5em;
}
#mail > i { display: block; border: 0.3em solid transparent; width: 0px; height: 0px; border-top-color: #ccc; z-index: 2; margin-bottom: -1.65em; transition: transform 0.3s; transform-origin: top; backface-visiblity: none; -webkit-backface-visibility: hidden;
}
/* Annimation?
#mail:hover > i { transform: scaleY(-1);
}*/
#mail > span { display: none; background: red; color: white; font-size: 0.2em; padding: 0.1em 0.4em; border: 2px solid white; border-radius: 1em; /*min-width: 1.15em;*/ text-align: center; margin-left: 3.2em; font-family: Helvetica;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="mail"> <div></div> <i></i> <span></span>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Resizable mail icon - Script Codes CSS Codes
body { font-size: 100px; background: url(https://subtlepatterns.com/patterns/squairy_light.png);
}
#mail { height: 0.5em; width: 0.6em; padding: 0.25em 0.2em; background: dodgerblue; position: absolute; top: 50%; left: 50%; margin-top: -0.5em; margin-left: -0.5em; transition: transform .2s; box-shadow: 0 0 10px rgba(0,0,0,0.7); -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer;
}
#mail:active { transform: scale(0.9);
}
#mail > div { width: 0.6em; height: 0.5em; background: #eee; z-index: 1; margin-bottom: -0.5em;
}
#mail > i { display: block; border: 0.3em solid transparent; width: 0px; height: 0px; border-top-color: #ccc; z-index: 2; margin-bottom: -1.65em; transition: transform 0.3s; transform-origin: top; backface-visiblity: none; -webkit-backface-visibility: hidden;
}
/* Annimation?
#mail:hover > i { transform: scaleY(-1);
}*/
#mail > span { display: none; background: red; color: white; font-size: 0.2em; padding: 0.1em 0.4em; border: 2px solid white; border-radius: 1em; /*min-width: 1.15em;*/ text-align: center; margin-left: 3.2em; font-family: Helvetica;
}
Resizable mail icon - Script Codes JS Codes
var c = 0;
$("#mail").click(function(){ c++; $("#mail > span").text(c).show();
});
Developer | Jaflo |
Username | jaflo |
Uploaded | September 12, 2022 |
Rating | 4 |
Size | 2,826 Kb |
Views | 22,264 |
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 |
Dialogue boxes | 3,897 Kb |
Wobble menu change animation | 2,443 Kb |
Icon wiggle animation | 2,169 Kb |
Styled calendar | 7,526 Kb |
SimpleGroove bookmarklet | 263,204 Kb |
D3 animation | 2,998 Kb |
Share button for images | 2,715 Kb |
Pokemon-like dialogue box | 2,392 Kb |
Cloud upload | 2,774 Kb |
Random symbols | 2,001 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 |
FCC Portfolio | Cmwebby | 4,304 Kb |
Template | Indra_z85 | 2,323 Kb |
Spin | Elalemanyo | 8,262 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Box Shadow Effects | Retrofuturistic | 2,143 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Hmmm... | Rk007 | 4,848 Kb |
Masonry | Uriuriuriu | 5,005 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!