-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obscure
, blank
, and yank
styling option
#101
Milestone
Comments
You could also do it blurring: .clickme {
filter: blur(0.3em);
}
// or
.click-alt {
color: transparent;
text-shadow: 0px 0px 5px #00;
// needs to define the color, which is a hassle
// -> take first option if possible
} |
|
<html>
<head>
<style>
.obscure::after {
content: 'XXXXXX';
filter: blur(0.35em);
}
.obscure > span {
display: none;
}
</style>
</head>
<body>
<span class="obscure"><span>Hello World, I am obscured</span></span>, but I am not
</body>
<script text="javascript">
const removeObscure = function(event) {
const obscureTag = document.body.querySelector('.obscure')
event.target.classList.remove('obscure')
}
document.body.querySelector('.obscure').addEventListener('click', removeObscure)
</script>
</html> |
|
Closed
hgiesel
changed the title
Feb 16, 2020
obscure
styling optionobscure
, blank
, and yank
styling option
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having sets or elements, which don't show their content yet, but rather only show it after clicking on it.
Options:
obscure
: boolobscurePlaceholder
: placeholder text, iff empty, obscure actual text insteadThe text was updated successfully, but these errors were encountered: