.hexagon1 { margin-top: 100px; margin-left: 25%; position: absolute; height: 300px; width: 300px; transform: scale(100%,90%); background-color: black; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); /*mask gør at alt ud over højde og vidde på denne boks ikke vises*/ -webkit-mask-image: radial-gradient(white 100%, rgba(0, 0, 0, 0.1) 50%); mask-image: radial-gradient(square, black 100%, rgba(0, 0, 0, 0.5) 50%); }
.hexagon1-bg { position: absolute; height: 400px; width: 400px; margin: -50px; background-image: linear-gradient(90deg, black 50%, magenta); /* background: conic-gradient(#000 30%,hsl(0 100% 70%) 90%,#000);*/ animation: frame 2s ease-in-out infinite; }
@keyframes frame { to { rotate: 1turn; filter: hue-rotate(1turn); } }
.hexagon2 { position: absolute; height: 300px; width: 300px; transform: scale(80%,80%); background-color: #333333; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }