CSS3 Text Masking

Developer
Size
2,609 Kb
Views
24,288

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 Previews

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
*/
CSS3 Text Masking - Script Codes
CSS3 Text Masking - Script Codes
Home Page Home
Developer Jesper Hills
Username nopr
Uploaded October 13, 2022
Rating 3.5
Size 2,609 Kb
Views 24,288
Do you need developer help for CSS3 Text Masking?

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!

Jesper Hills (nopr) 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!