Resizable mail icon

Developer
Size
2,826 Kb
Views
22,264

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 Previews

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();
});
Resizable mail icon - Script Codes
Resizable mail icon - Script Codes
Home Page Home
Developer Jaflo
Username jaflo
Uploaded September 12, 2022
Rating 4
Size 2,826 Kb
Views 22,264
Do you need developer help for Resizable mail icon?

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!

Jaflo (jaflo) Script Codes
Create amazing video scripts 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!