I'm facing a challenge with my mask-image in CSS. I have successfully positioned it using the mask-position property, but I can't seem to figure out how to rotate it without rotating the entire element. Can anyone provide insight on how to achieve this?
Below is the code snippet I am working with:
<body>
<div class="water light-layer"></div>
</body>
<style lang="scss">
.light-layer {
position: absolute;
z-index: 4;
width: 100%;
height: 100rem;
margin-top: -2.55rem;
background: linear-gradient(180deg, rgba(53, 99, 233, 0.98) 1.17%, rgba(25, 53, 136, 0.99) 36.14%, #000D34 96.66%);
mask-image: url("https://i.ibb.co/FzmCjLL/Jqtz.png"), linear-gradient(#fff 0 0);
mask-repeat: no-repeat;
mask-composite: exclude;
mask-position: 50% 20%;
/* Rotate here */
}
</style>
I've attempted using normal css rotation methods, but unfortunately, that rotates the entire element rather than just the mask-image.