<!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