CSS3, JS animation effects

Source: Internet
Author: User

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <title>Document</title>    <styletype= "Text/css">. out{width:200px;Height:300px;-webkit-perspective:800px;margin:0 Auto;        }. Box{width:100%;Height:100%;-webkit-transform-style:preserve-3d;        }img{transition:-webkit-transform 2s ease 1s,width 1s ease 2s;-webkit-box-reflect:below 5px-webkit-gradient (linear,50% 0,50% 100%, Color-stop (0,rgba (0,0,0,0)), Color-stop (0.5,rgba (0,0, 0,0.1)), Color-stop (0.8,rgba (0,0,0,0.4)), Color-stop (1,rgba (0,0,0,0.8) ));                                /*above: Specifies that the reflection is on top of the object below: Specifies that the reflection is below the object                            Left: Specifies that the reflection is on the right side of the object: Specify reflection to the right of the object 5px defines the distance between shadows and pictures*/        }Img:hover{-webkit-transform:Rotate3d (1,1,1,45deg);width:300px;        }    </style></Head><Body><Divclass= "Out">    <Divclass= "box">        <imgsrc= "1.jpg"width= "200px"Height= "200px">    </Div></Div>    </Body></HTML>

CSS3, JS animation effects

Related Article

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.