A Better Moustache
How do I make an a better moustache?
What is a a better moustache? How do you make a a better moustache? This script and codes were developed by Patrick Cox on 04 September 2022, Sunday.
A Better Moustache - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Better Moustache</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 { background: #ebeaaa;
}
img { position: absolute; top: -76px; margin-left: -230px; left: 50%;
}
.moustache { position: relative; width: 120px; margin: 288px auto;
}
.mou,
.stache { background: #352723; display: block; height: 50px; width: 75px;
}
.mou:before,
.stache:before { content: "\0020"; position: absolute; height: 50px; width: 54px;
}
.mou { position: absolute; left: 80px; border-top-left-radius: 170px; border-bottom-right-radius: 200px; border-bottom-left-radius: 12px; transform: rotate(40deg); z-index: 5; box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.2);
}
.mou:before { left: 21px; top: -49.5px; z-index: 0; background-image: radial-gradient(8% -5%, rgba(0, 0, 0, 0) 50px, rgba(0, 0, 0, 0) 50px, #352723 51px);
}
.stache { position: absolute; border-top-right-radius: 170px; border-bottom-right-radius: 12px; border-bottom-left-radius: 200px; transform: rotate(-40deg); z-index: 15; box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.2);
}
.stache:before { left: 0px; top: -49.5px; z-index: 10; background-image: radial-gradient(93% 8%, rgba(0, 0, 0, 0) 50px, rgba(0, 0, 0, 0) 50px, #352723 51px);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <img src="https://goo.gl/KCQZB" width="460px"/>
<div class="moustache"> <span class="mou"></span> <span class="stache"></span>
</div> <script src="js/index.js"></script>
</body>
</html>
A Better Moustache - Script Codes CSS Codes
body { background: #ebeaaa;
}
img { position: absolute; top: -76px; margin-left: -230px; left: 50%;
}
.moustache { position: relative; width: 120px; margin: 288px auto;
}
.mou,
.stache { background: #352723; display: block; height: 50px; width: 75px;
}
.mou:before,
.stache:before { content: "\0020"; position: absolute; height: 50px; width: 54px;
}
.mou { position: absolute; left: 80px; border-top-left-radius: 170px; border-bottom-right-radius: 200px; border-bottom-left-radius: 12px; transform: rotate(40deg); z-index: 5; box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.2);
}
.mou:before { left: 21px; top: -49.5px; z-index: 0; background-image: radial-gradient(8% -5%, rgba(0, 0, 0, 0) 50px, rgba(0, 0, 0, 0) 50px, #352723 51px);
}
.stache { position: absolute; border-top-right-radius: 170px; border-bottom-right-radius: 12px; border-bottom-left-radius: 200px; transform: rotate(-40deg); z-index: 15; box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.2);
}
.stache:before { left: 0px; top: -49.5px; z-index: 10; background-image: radial-gradient(93% 8%, rgba(0, 0, 0, 0) 50px, rgba(0, 0, 0, 0) 50px, #352723 51px);
}
A Better Moustache - Script Codes JS Codes
// fixed the bg color problem. Removed the :after mask content that originally masked off the :before content that created the concave curve for the ends of the stache.
// instead of masking, I'm now using a radial-gradient on the :before element itself, positioned and then set to an alpha value of 0.
Developer | Patrick Cox |
Username | pcridesagain |
Uploaded | September 04, 2022 |
Rating | 3 |
Size | 3,139 Kb |
Views | 34,408 |
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 |
Single Element Pure CSS US Flag | 1,875 Kb |
CSS Q-Bert | 4,926 Kb |
Responsive Content Experiment | 4,586 Kb |
A Pen by Patrick Cox | 3,176 Kb |
A Pen by Patrick Cox | 2,899 Kb |
Vans Logo, single element, no fonts, no psuedos | 3,162 Kb |
IOS web app bookmark reminder bubble | 2,576 Kb |
Sexy Version - iOS web app bookmark reminder bubble | 2,880 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 |
Smoke Shader - Frame Buffer | Omarshe7ta | 2,672 Kb |
Spin | Elalemanyo | 8,262 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Responsive Menu I | Rodericksandoval | 3,045 Kb |
Wrap_Test | Mscfourn | 7,503 Kb |
Simple, flat contact form | Zeaklous | 2,719 Kb |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Promodoro | Bencarp | 1,712 Kb |
CSS Variables | Jdsteinbach | 4,759 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!