example for css clip? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

example for css clip?

i dont get it. please code a simple example

23rd Apr 2019, 5:50 PM
Oma Falk
Oma Falk - avatar
4 Answers
+ 2
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible
23rd Apr 2019, 11:06 PM
Kenan
Kenan - avatar
+ 5
Kenan expected sth. like this. Is there an alternative?
24th Apr 2019, 5:59 AM
Oma Falk
Oma Falk - avatar
+ 1
It's depends completely on your setuation, But have a look on this: https://www.sitepoint.com/community/t/alternative-to-css-clip-path/280013/2
24th Apr 2019, 8:00 PM
Kenan
Kenan - avatar
+ 1
Masks are kinda similar. I used one to cut a circle out of a square so that you can see through it. <div id="spinner1"> <svg id="spinnerSvg1"> <defs> <mask id="spinnerHole1"> <rect width="14vw" height="14vw" fill="white"/> <circle cx="7vw" cy="7vw" r="6vw" fill="black"/> </mask> </defs> <rect mask="url(#spinnerHole1") id="spinMove"/> </svg> </div>
24th Apr 2019, 11:33 PM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar