Questions tagged [clip-path]
A CSS property that makes it possible to specify a specific region of an object to display.
clip-path
713
questions
0
votes
1
answer
42
views
HTML and CSS only mask overlay, is it possible?
How to create a CSS-only overlay over images or other HTML elements?
Something like this:
All examples found until now suggest assigning a background and using a mix of either masks or clip-paths ...
1
vote
2
answers
95
views
Custom rounded shape CSS
I'm trying to draw a custom shape with rounded corners using CSS. Below is an image of what I have so far, but as you can see the rounded corners aren't completely working.
Attempt at custom shape
I'...
-1
votes
1
answer
65
views
Clip-Path Text Around Quarter Circle (CSS)
I'd like to achieve a text wrapping effect around a quarter circle in the top left corner of a div using CSS clip-path and shape-outside properties.
Currently, my code successfully clips a half circle,...
-1
votes
0
answers
18
views
How to make side of image curved CSS [duplicate]
I know how to make edges rounded however I have a scenario where I want to make one of the sides of an image slightly curved. As shown in the photo below.
My best guess is that i'll have to use a ...
3
votes
0
answers
57
views
Clip-path: how to create a circle that paints clockwise?
How can I do an animation where there a circle that is not visible, then a circle paints clockwise like below until the whole circle is visible? The code below works great for 0% - 25% as it smoothly ...
0
votes
1
answer
51
views
Let overlay div become visible through clip-path circle transition / animation
I have two <div>s that fill the entire page. The first div (blue) is shown initially and the second one (yellow) is hidden (display:none). If I click on the blue div, I want to show the yellow ...
2
votes
1
answer
45
views
Grid layout & clip-path help (disappearing middle image)
I'm am currently exploring clip-path. I'm having some trouble with a grid layout and disappearing image.
I have three images in a div called .gallery. I want them to:
Display next to each other ...
0
votes
2
answers
53
views
SVG element won't render within space of another SVG element using clipPath & path
I'm trying to make an SVG element render within another given SVG element using path and clipPath attributes.
Specifically, I'm trying to the character's pupil to render within the player's eyes and ...
1
vote
1
answer
27
views
Clip Path height/objectBoundingBox not working Firefox
I have an effect on my site which uses a clip-path in the form of a wave like so:
<svg class="svg" width="0" height="0" preserveAspectRatio="xMidYMid meet"&...
0
votes
1
answer
28
views
Using clipPath changes the size of the paths for an SVG
I'm encountering an issue where my SVG shrinks when I apply a clipPath to it. Despite setting the clipPathUnits to userSpaceOnUse to ensure that the clip path coordinates align with the SVG’s viewBox, ...
0
votes
1
answer
33
views
clip-path change in runtime in Javascript
I am able to change the clipPath property of an element at runtime.
But I am not able to change the property value using a variable incremented in timer.
How to allocate the value of x to these two ...
0
votes
1
answer
61
views
Custom shape with clip-path
div {
position: fixed;
bottom: 0;
background-color: green;
height: 50vh;
width: 100vw;
}
<div></div>
Is it possible to do this kind of shape with clip-path and svg? I ...
0
votes
1
answer
65
views
Get rounded corner while using a border created with clip-path
I am trying to create the following shape (https://i.sstatic.net/cZmav.png
right now i am using a clip-path to create the border, because of the corner in the bottom-right. however i am having a ...
0
votes
0
answers
51
views
SVG Clip Mask Over Video Not Displaying in Safari
I successfully created an SVG clip mask using a company logo that is supposed to be used as a mask over a video montage. However, it works in every browser except for Safari. I have scoured this site ...
0
votes
0
answers
55
views
Image with Clip-path Animated
I'm having issues trying to animate the clip-path while the image remains unmoved.
svg {
transition: 2s;
transform: matrix(3, 2, -2, 3, 0, 0);
}
<div>
<svg version="1.1" id="...