0

I'm trying to make "skewed" shape as viewport window for pictures

Pic1 is what I want to make (I don't know how much pictures I will have)

enter image description here

Pic2 is the picture I use as base (background)

enter image description here

I'm using viewport window in CSS

.town_window{
width:190px;
height:165px;
-webkit-transform: skew(20deg); 
-moz-transform: skew(20deg); 
-o-transform: skew(20deg);
color: grey;
opacity: 0.7;
overflow: hidden;
}
#caluga{
background:url(images/caluga.jpg) no-repeat;
width: 277px;
height: 190px;
}

I'm getting scewed picture (I understand why), but I cannot figure out how to accomplish this task.

Please help ))

Thanks in advance, Alexei

aleXela
  • 1,270
  • 2
  • 21
  • 34

0 Answers0