CSS3 Text Masking
How do I make an css3 text masking?
What is a css3 text masking? How do you make a css3 text masking? This script and codes were developed by Jesper Hills on 13 October 2022, Thursday.
CSS3 Text Masking - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Text Masking</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <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! */ /* Housekeeping */
body { background: #ddd; text-align: center; padding: 50px 0;
}
/* Reverse Mask */
.mask { cursor: pointer; display: inline-block; overflow: hidden; /* Background to mask */ background: url("https://bit.ly/ZxCkSc"); background-position: 0 50%; -webkit-background-clip: text; -moz-background-clip: text; -o-background-clip: text; background-clip: text; /* Text size and style */ font-size: 150px; font-family: Arial, sans-serif; font-weight: bold; line-height: 1; letter-spacing: -10px; padding: 0 15px;
}
/* Variants */
.one { color: transparent; text-stroke: 25px; background-position: 0 25%; text-shadow: 0 0 15px rgba(221,221,221,0.2); transition: text-shadow 0.35s linear;
}
.one:hover { text-shadow: 0 0 10px rgba(221,221,221,1), 0 0 0 #ddd;
}
.two { color: transparent; text-stroke: 5px; background-position: 0 0; transition: background-position 1.5s;
}
.two:hover { background-position: 0 50%;
}
.three { color: transparent; text-shadow: 0 0 0px #ddd; text-stroke: 5px; transition: text-shadow 0.5s;
}
.three:hover { text-shadow: 0 0 5px rgba(255,255,255,0.0);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <!-- Reverse masked text -->
<h1 class="mask one">Stockholm</h1>
<h1 class="mask two">Stockholm</h1>
<h1 class="mask three">Stockholm</h1> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
CSS3 Text Masking - Script Codes CSS Codes
/* Housekeeping */
body { background: #ddd; text-align: center; padding: 50px 0;
}
/* Reverse Mask */
.mask { cursor: pointer; display: inline-block; overflow: hidden; /* Background to mask */ background: url("https://bit.ly/ZxCkSc"); background-position: 0 50%; -webkit-background-clip: text; -moz-background-clip: text; -o-background-clip: text; background-clip: text; /* Text size and style */ font-size: 150px; font-family: Arial, sans-serif; font-weight: bold; line-height: 1; letter-spacing: -10px; padding: 0 15px;
}
/* Variants */
.one { color: transparent; text-stroke: 25px; background-position: 0 25%; text-shadow: 0 0 15px rgba(221,221,221,0.2); transition: text-shadow 0.35s linear;
}
.one:hover { text-shadow: 0 0 10px rgba(221,221,221,1), 0 0 0 #ddd;
}
.two { color: transparent; text-stroke: 5px; background-position: 0 0; transition: background-position 1.5s;
}
.two:hover { background-position: 0 50%;
}
.three { color: transparent; text-shadow: 0 0 0px #ddd; text-stroke: 5px; transition: text-shadow 0.5s;
}
.three:hover { text-shadow: 0 0 5px rgba(255,255,255,0.0);
}
CSS3 Text Masking - Script Codes JS Codes
/* Mouse over the text below
*/
Developer | Jesper Hills |
Username | nopr |
Uploaded | October 13, 2022 |
Rating | 3.5 |
Size | 2,609 Kb |
Views | 24,288 |
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 |
Peeling Button | 2,214 Kb |
CSS Fab Ice Cream | 1,947 Kb |
A Pen by Jesper Hills | 2,738 Kb |
Click-activated fluid width slider | 2,567 Kb |
Smooth click-activated slider | 2,424 Kb |
CSS3 Record Collection | 3,602 Kb |
Full-height content with footer below fold | 2,350 Kb |
Using label to style File Input | 2,646 Kb |
Fake CSS Loader | 2,791 Kb |
Vertically rotating text with CSS | 2,141 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 Bouncy Menu Toggle | Billyysea | 4,563 Kb |
Search field | Jamesbarnett | 2,100 Kb |
Bootstrap example | Ssaakkaa | 2,716 Kb |
Popup Modal | Aldlevine | 3,696 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
Css or Czz.. | Judag | 4,111 Kb |
Minimal Menu | Achudars | 3,430 Kb |
GrcJS | Vino6 | 2,047 Kb |
Portfolio Landing Page | FDfranklin | 3,585 Kb |
Twitch | SarahDunlap | 2,937 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!