CSS3 Image Reflection
1 <!DOCTYPE HTML>2 <HTML>3 <HeadLang= "en">4 <MetaCharSet= "UTF-8">5 <title></title>6 <style>7 . Container{8 position:relative;9 }Ten . Mask{ One position:Absolute; A /*margin:50px;*/ - Transform-origin:0 0; - Transform:Rotatex (180deg) Rotatez ( -10deg); the Top:224px; - Left:-20px; - } - . Mask>div{ + position:Absolute; - Top:0; + Left:0; A /*border-radius:50%;*/ at } - . Mask>div:first-child{ - Z-index:1; - } - . Mask>div:last-child{ - /*Background-color:rgba (255, 255, 255, 0.8);*/ in Z-index:9; - /*border:1px solid #f00;*/ to width:200px; + Height:112px; - Background-image:linear-gradient (0deg, Rgba (255,255,255,0.85), #fff, #fff, #fff); the * } $ Body{Panax Notoginseng margin:50px; - } the . IMG{ + Transform-origin:0 100%; A Transform:Rotatez ( -10deg); the } + . Img>img{ - /*border-radius:50%;*/ $ } $ </style> - </Head> - <Body> the - <Divclass= "Container">Wuyi <Divclass= "img"><imgsrc= "Images/1.jpg"alt=""/></Div> the <Divclass= "Mask"> - <Div><imgsrc= "Images/1.jpg"alt=""/></Div> Wu <Div></Div> - </Div> About </Div> $ </Body> - </HTML>
CSS3 Image Reflection