Skip to main content

All Questions

Tagged with
0 votes
0 answers
81 views

Aspect ratio of polygon-clip path

I have a polygon shape inside the container but the problem is shape has the static width and height of both div . I want to make it responsive and it should take the 80% of the given space with some ...
usman rehmat's user avatar
0 votes
0 answers
38 views

How to make a staircase / step line using svg in reactjs / nextjs?

Hey guys i am very new to svg path animations, i am trying to re create steps / stair svg path something like below How do i proceed to make something like this ? animated as in on scroll it fix ...
dvlprkrishna's user avatar
0 votes
1 answer
1k views

How to animate an image reveal with GSAP and clip-path in React

I'm trying to animate the reveal of an image using GSAP and the clip-path property in a Component. The animation works as expected when I use the first clip-path value, but when I switch to the other ...
Marius's user avatar
  • 41
1 vote
1 answer
603 views

Creating a fancy progress bar from an svg

In my app we have a progress bar that we want to be in the shape of a water bottle, like so: The approach I have been taking is to use the outer line as a clip-path element in the svg, but after that ...
ipenguin67's user avatar
  • 1,599
0 votes
0 answers
110 views

Hide SVG or Image behind border

I have the following problem. I have created an Hexagon that has a coloured border and I would like to place an image or SVG inside the hexagon, and the problem is that I cant figure out how to make ...
Burnir's user avatar
  • 15
0 votes
0 answers
578 views

Clip-path is not working. Did I miss something?

I'm trying to use clip-path in CSS but it's not working. I've watched plenty tutorials by now and it seems simple, but it's just not working and doesn't appear to be trying to work. I should also ...
Julian Brooks's user avatar
0 votes
0 answers
94 views

Css overlay height inheritance

I am making my personal portfolio and faced big issue. As you can on the picture black overlay have to "catch up" picture, to be precise, it has to be same height. If I increase only height ...
Nijaz's user avatar
  • 188
0 votes
1 answer
483 views

White border line on Image using clipPath of fabricjs

I'm trying to clip image with clipPath object using fabricjs in Reactjs . It works fine except there is a white line (about 1 pixel) showing on top and left border. Code can be checked at this ...
ImFarhad's user avatar
  • 3,029
1 vote
1 answer
221 views

Button doesn't disappear immediately; need to move mouse during animation using clip-path

I am setting the clipPath property from circle(0%) to circle(100%) using GSAP timeline. let t1 = useRef(); useEffect(() => { t1.current = gsap.timeline({ defaults: { duration: 0.5, ease: &...
Penguin's user avatar
  • 189
-3 votes
1 answer
1k views

CSS, How can I do the exact opposite of this clip-path?

Hi guys I'm trying to make a arrow back shape for a container in my react project, so right now I managed to make a forward arrow using clipPath: <div style={{clipPath: 'polygon(0 0, 0 100%, 70% ...
jose fernandez's user avatar
1 vote
1 answer
911 views

How to map an array of arrays into a JSX element in a react component, with each inner array having it's own clipPath

array_groups is an array of arrays. The objects in the inner arrays are coordinates of regular circles, which are all proximal and the idea is that these inner arrays of circles should all be clipPath-...
user3743847's user avatar
0 votes
1 answer
950 views

clip-path with video html

I have an issue with clip-path property with video tag in Safari browser. In chrome and firefox, clip-path with video works fine. Actually Saffary should support it maybe my code has some other bugs. ...
Viktor Hardubej's user avatar
3 votes
1 answer
239 views

Get Clipped Line Visible Area Length d3

I'm trying to clip a line with circle using ClipPath and successfully done it with dragging as well. Here is my working Code; function clipData(svg, cx, cy) { var clip = svg.append("defs") ...
Naila Akbar's user avatar
  • 3,258
-1 votes
1 answer
342 views

React production build differs from development | polyfill does not run

I've run npx create-react-app . and imported clip-path manually. Development build works without a problem, but the production one doesn't seem to work. Issue is the same on IE11 and Edge44 Steps to ...
Dawid's user avatar
  • 594
0 votes
1 answer
447 views

clip-path dynamic transformations to fill container

I'm working on a react component I would like to be able to pass any image along with its dimensions, a clip-path calculated from an x, y width, and height for a rectangular region. This part I have ...
edencorbin's user avatar
  • 2,779

15 30 50 per page