Black Show Content

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<section class="banner"></section>
<div class="content">
<h2>CSS Clip Path Mousemove Effects</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
font-family: arial;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
.banner{
position: fixed;
width: 100%;
height: 100vh;
background: url(img.jpg);
background-size: cover;
display: flex;
justify-content: center;
align-content: center;
transition: 0.2s;
clip-path: circle(75px at var(--x) var(--y));
}
.banner:active{clip-path: circle(400px at var(--x) var(--y));}
.content{
position: relative;
max-width: 1100px;
z-index: 1;
mix-blend-mode: overlay;
pointer-events: none;
user-select: none;
}
.content h2{
position: relative;
color: #fff;
font-size: 60px;
}
.content p{
position: relative;
color: #fff;
font-size: 18px;
}
</style>
<script type="text/javascript">
var pos = document.documentElement;
pos.addEventListener("mousemove", e =>{
pos.style.setProperty('--x', e.clientX + "px");
pos.style.setProperty('--y', e.clientX + "px");
});
</script>
</body>
</html>

Comments

Popular posts from this blog

Right click disable

Call Desktop