This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Dead Space / Overalpping icons
#7
(26.07.2024, 10:21)admin Wrote: This won't work because the actual clickable element is not the icon itself but a div containing the icon. So the clip path must be applied to the div element.

ok thanks,

i can appy the following css with additional class to each icon which effectivly clips the negative of the image:

Code:
.svg1 { /*  Set the region to be clipped ( negative of the image ) */
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%
  );    
}

is it possible to use javascript to apply the css to all icons with the same image src filename? if so would you have an example or another way that avoids manually applying 1 by 1?
Reply


Messages In This Thread
Dead Space / Overalpping icons - by Diggerz - 26.07.2024, 02:08
RE: Dead Space / Overalpping icons - by admin - 26.07.2024, 08:21
RE: Dead Space / Overalpping icons - by admin - 26.07.2024, 08:40
RE: Dead Space / Overalpping icons - by admin - 26.07.2024, 10:21
RE: Dead Space / Overalpping icons - by Diggerz - 27.07.2024, 06:55
RE: Dead Space / Overalpping icons - by admin - 29.07.2024, 06:29

Forum Jump: