Achieve the photo wall effect

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.