Box-shadow hexagon mask
How do I make an box-shadow hexagon mask?
Box-shadow with Big spread-radius value, It can cover and hide behind stacks. One element Hex has 2 pseudo-elements. Both transforms skewX.. What is a box-shadow hexagon mask? How do you make a box-shadow hexagon mask? This script and codes were developed by Keisuke Takahashi on 19 November 2022, Saturday.
Box-shadow hexagon mask - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>box-shadow hexagon mask</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <h1>hexagon mask</h1> <p>no css mask, js & svg.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Provident repellat distinctio modi, doloribus enim incidunt, sapiente excepturi. Dolorum ducimus voluptate enim laudantium quidem provident quaerat soluta nostrum numquam fugit! Asperiores.</p>
</header>
<div class="hex"></div>
</body>
</html>
Box-shadow hexagon mask - Script Codes CSS Codes
*,
:before,
:after { box-sizing: inherit;
}
html,
body { height: 100%; margin: 0; padding: 0;
}
html { background: url(http://ksk-soft.com/css_labo/dimg/orengeFlower.jpg) center no-repeat; background-size: cover;
}
body { box-sizing: inherit; overflow-x: hidden;
}
header,
.hex,
.hex:before,
.hex:after { position: fixed; left: 0; right: 0; top: 0; bottom: 0; margin: auto;
}
header { text-align: center; width: 30vw; height: 30vw; color: rgba(255, 255, 255, 0.7)
}
h1 { line-height: 1;
}
.hex { box-shadow: 0 0 1em 100vw #000; height: 30vw; width: 30vw; margin: auto; overflow: hidden; font-size: 2vw; cursor: pointer; -webkit-animation: hex infinite 10s linear; animation: hex infinite 10s linear; -webkit-transition: 0.5s; transition: 0.5s;
}
.hex:hover { -webkit-animation-duration: 20s; animation-duration: 20s; height: 60vw; width: 60vw;
}
.hex:before,
.hex:after { content: ""; display: block; height: 88%; width: 100%; position: absolute; top: 6%; bottom: 6%; -webkit-transform: skewX(30deg); transform: skewX(30deg); box-shadow: 0 0 0 10em #000;
}
.hex:after { -webkit-transform: skewX(-30deg); transform: skewX(-30deg);
}
@keyframes hex { 100% { transform: rotate(1turn); }
}
@-webkit-keyframes hex { 100% { -webkit-transform: rotate(1turn); }
}
Developer | Keisuke Takahashi |
Username | ksksoft |
Uploaded | November 19, 2022 |
Rating | 3 |
Size | 2,196 Kb |
Views | 18,216 |
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 |
Pure CSS candle light animation by One element | 2,193 Kb |
Flexbox layout patterns | 2,546 Kb |
Equalizer | 2,009 Kb |
Pure css thumbnails hover | 1,773 Kb |
Table-cell with gutter | 1,923 Kb |
Pure CSS Slide Panel | 2,463 Kb |
SVG Concentrated Linework | 1,806 Kb |
Pure css Parallax header | 2,143 Kb |
Real eye with CSS Sfumato | 2,734 Kb |
CSS Slot Machine | 3,111 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 |
Monochrome Form | AlienPiglet | 3,096 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
My three.js practice | Esambino | 3,203 Kb |
Mostly Fluid | Mccreath | 3,308 Kb |
A Pen by Paul Sullivan | Pwsm50 | 2,349 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
JQuery AJAX reddit Exercise | Btholt | 1,777 Kb |
CSS3 Media Queries demo | Machal | 1,824 Kb |
Slim Grid SASS SCSS v3.2 | Thesturs | 4,709 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!