A Better Moustache

Developer
Size
3,139 Kb
Views
34,408

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 Previews

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.
A Better Moustache - Script Codes
A Better Moustache - Script Codes
Home Page Home
Developer Patrick Cox
Username pcridesagain
Uploaded September 04, 2022
Rating 3
Size 3,139 Kb
Views 34,408
Do you need developer help for A Better Moustache?

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!

Patrick Cox (pcridesagain) Script Codes
Create amazing SEO content 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!