CSS3实现图片放大旋转_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:06:22
Original
1568 people have browsed it

知识点:

    css3动画

    transition


    /*旋转动画*/

@-webkit-keyframes rotation{

from {-webkit-transform: rotate(0deg);}

to {-webkit-transform: rotate(360deg);}

}

效果:

源码:

-----------------------

图片过渡缩放

/*通用样式*/

*{margin: 0;padding: 0;}

/*自定义样式*/

.img{margin-left: 25px;margin-top: 50px;margin-right: 25px;

    transition: all 2s ease;

}

.img:hover{

z-index: 10;

border: 1px dashed #ff0000;

-webkit-transform: rotateY(360deg);

transform: scale(1.51,1.51) rotate(360deg);

}

.ta_c{text-align: center;

width: 99%;

}

/*旋转动画*/

@-webkit-keyframes rotation{

from {-webkit-transform: rotate(0deg);}

to {-webkit-transform: rotate(360deg);}

}

CSS3实现图片放大旋转_html/css_WEB-ITnose

CSS3实现图片放大旋转_html/css_WEB-ITnose

CSS3实现图片放大旋转_html/css_WEB-ITnose

CSS3实现图片放大旋转_html/css_WEB-ITnose

CSS3实现图片放大旋转_html/css_WEB-ITnose

CSS3实现图片放大旋转_html/css_WEB-ITnose

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template