Https://github.com/shiralwz/image-page
Today on GitHub uploaded a small photo wall of the page source code, mainly the function of the photo wall, when the mouse moved to which photo, the photo automatically zoom in and float.
<!DOCTYPE HTML><HTML> <HeadLang= "en"> <MetaCharSet= "Utf-8"> <title>Photo Wall</title> <Linktype= "Text/css"href= "Style.css"rel= "stylesheet"> </Head> <Body> <Divclass= "Container"> <imgclass= "Pic Pic1"src= "Image/1.jpg"> <imgclass= "pic Pic2"src= "Image/2.jpg"> <imgclass= "Pic Pic3"src= "Image/3.jpg"> <imgclass= "Pic Pic4"src= "Image/4.jpg"> <imgclass= "Pic Pic5"src= "Image/5.jpg"> <Div> </Body></HTML>
*{margin:0;padding:0;}Body{Background-color:#cccccc;}. Container{width:960px;Height:450px;margin:60px Auto;position:relative;}. pic{width:230px;}. Container Img:hover{Box-shadow:15px 15px 20px rgba (50,50,50,0.4);Transform:Rotate (0deg) scale (1.20);-webkit-transform:Rotate (0deg) scale (1.20);Z-index:2;}. Container img{padding:10px 10px 15px;background: White;Border:1px solid #ddd;Box-shadow:2px 2px 3px rgba (50,50,50,0.4)-webkit-transition:all 0.5s ease-in;-moz-transition:All 0.5s ease-in;-ms-transition:All 0.5s ease-in;-o-transition:All 0.5s ease-in;transition:All 0.5s ease-in;position:Absolute;Z-index:1;}. Pic1{ Left:0px;Top:0;Transform:Rotate ( -5deg);-webkit-transform:Rotate ( -5deg);}. Pic2{ Left:400px;Top:0;Transform:Rotate ( -15deg);-webkit-transform:Rotate ( -15deg);}. PIC3{Bottom:0px; Right:10px;Transform:Rotate (5deg);-webkit-transform:Rotate (5deg);}. Pic4{Bottom:0px; Left:30px;Transform:Rotate ( -10deg);-webkit-transform:Rotate ( -10deg);}. Pic5{ Left:350px;Top:300px;Transform:Rotate ( -10deg);-webkit-transform:Rotate ( -10deg);}
Achieve the photo wall effect