html - CSS bubble div Inverted Triangle image overlay -


I have a question with the inverse radius image overlay. I have made it from to codepen.io

What do I want in my demo You can see that there is a bubble divide inside an image, a triangle appears on the right side of the image is. I should see this in the triangle in the picture. How can I do that someone can help me?

CSS:

  .bubble {position: fixed; Width: 345px; Height: 235px; Padding: 0 pixels; Background: #FFFFFF; -Vibit-boundary-radius: 2px; -max-boundary-radius: 2px; Boundary-radius: 2px; Limit: # d8dbdf Solid 1px; -WebKit-box-shadow: 1px1px1px px rgba (216, 219, 223, 0.52); -MOZ-BOX-SHADOW: -1 PX1 PX1 PX0 PX RGBA (216, 219, 223, 0.52); Box-Shadow: 1px1px1px px rgba (216, 219, 223, 0.52); } .bubble: after {content: ''; Status: Completed; Border-style: solid; Threshold width: 10px 0 10px 10px; Border color: transparent #fff; Display area; Width: 0; Z-index: 1; Correct: -10 pixels; Top: 16px; } .bubble: {content: ''; Status: Completed; Border-style: solid; Threshold width: 10px 0 10px 10px; Border color: transparent # d8dbdf; Display area; Width: 0; Z-index: 0; Correct: -11 px; Top: 16px; }. Film_bilgileri {float: left; Width: 345px; Height: 235px; Background color: red; }. Film_kapak {float: left; Width: 345px; Height: 120px; Background color: white; Hidden flurry; }. Film_kapak img {width: 100%; -Wbkit-Infection: -WebKit-Transmission 0.5S Easy; -Mozy-transition: -Moz-transformer 0.5S easy; Webkit-Backfiest-Visibility: hidden; }  

HTML:

  & lt; Div class = "container" & gt; & Lt; Div class = "bubble" & gt; & Lt; Div class = "film_bilgileri" & gt; & Lt; Div class = "film_kapak" & gt; & Lt; Img src = "abc.jpg" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

Creating a transparent triangle using white boundaries in a way and up and down Masking is by using an element with white background.

A transparent triangle has been made using white masking:

border-left: 11px solid transparent; Border-top: 11px solid white; Border bottom: 11px solid white; Examples of working:

(Note - this is not the production material, but only to give you ideas)

< / Html>

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -