106 questions
0 votes
2 answers
72 views
SVG masking with static and fixed positioned paths
I have a fixed element at the top of my page, a vector logo. Further down the page, I have a large vector element. They are both the same colour. When the logo passes over the second element, I want ...
0 votes
1 answer
192 views
How to add border to the mask structure?
I am trying to achieve one shape(like below). I have taken the shape code from https://css-shape.com/inverted-radius/ But, the problem I am facing is with the border, I need to add border to my shape,...
1 vote
2 answers
118 views
Add border to a shape built using CSS mask
I have an image that has a -webkit-mask applied to it, and I need to apply a border to the resulting shape. Unfortunately, the mask breaks the border. How do I apply a border around the entirety of ...
1 vote
1 answer
163 views
Css mask-image or mask-mode not working in safari
The mask-image or the mask-mode is not working on Safari. (working version) chrome: (not working) safari: The code below is from an answer submitted by user "herrstrietzel" in a previous ...
0 votes
0 answers
87 views
CSS masking: Using two or more mask for one image or video
this is the code: <div class="mask1"> <video id="slowMotionVideo" width="700" loop autoplay muted> <source src="flames-video.mp4" ...
0 votes
1 answer
107 views
Css SVG mask causes jagged edges
I use SVG for backgroundclipping. It is very nice, except on a very long container. If the container is too long, the edges will become jagged. Is there a reason and solution for this? It must be a ...
3 votes
2 answers
103 views
How to Mask a DIV with a SVG path
I try to create a HTML/CSS/JS funnel graph, with a simple front-end structure, in order to do so, I place funnel segments as a flex row: document.addEventListener( 'DOMContentLoaded', function() { ...
2 votes
0 answers
128 views
How can I get a stepped effect with `mask-mode: luminance`?
I figured that if I have a mask with a black area and a white area, then the pixels corresponding to the black area become transparent, while those corresponding to the white area stay opaque. Except ...
2 votes
2 answers
543 views
How to create a smooth inner curve for a block's corner?
I'm trying to create a block with a smooth, curved cut-out in the top-right corner, similar to the image below: Currently, my implementation looks like this: As you can see, the current curve is not ...
1 vote
1 answer
70 views
Can I make a consistantly sized corner mask-composite for an image?
I have multiple images that I'd love to have the exact same size of an corner cut-out (like of you were to fold a corner of a page). I've tried using polygon(), but when an image isn't the same ...
0 votes
2 answers
129 views
Masking a part of a border
Is it possible to make a div border masked in a specific place like in the picture above? Some kind of div masks another div without setting a background-color (because the background of a whole site ...
1 vote
1 answer
146 views
Creating a wavy border on all sides using CSS
Using this generator I can create the wavy border I'm after on either the top and bottom or left and right, but I'm having trouble combining these masks to create a wavy border all the way around. Top ...
1 vote
1 answer
72 views
Circle cut out with fully transparent border?
I am working on a project that has a contact-us button. This button requires a status indication. I've read the following article that shows a status indication on a avatar image. The cool thing about ...
0 votes
1 answer
59 views
CSS Gradients Rendering Incorrectly in Browser?
I'm doing some custom coding in Squarespace. I am having a strange thing happen that I've never seen before. I am trying to add a hard-stop gradient mask to a div (textbox) so that I can create a wavy ...
0 votes
1 answer
168 views
Clip/mask (remove) top-right image corner with SVG
Is there a (Cross browser (no IE)) way to clip the top right corner of an dynamically sized image with this svg? In the worst case, I can use a fixed aspect ratio, but I prefer it to be as flexible as ...