css3旋转放大和移动

css3旋转放大和移动

本文演示了四种不同的常用css3效果,你可以很方便的应用在手机或微信站上。包括上下移动,图片放大或缩小,旋转效果等。演示demo请用高级浏览器查看。

淘建站为您提供更多_css3_transform_放大_缩小,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 261 次

打赏作者

觉得不错,可打赏下作者

下载资源

免费共享

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。
分类:css3 > transform 难易程度:入门级

演示一:360度旋转

<a class="rotate">360度旋转</a>
.rotate {
	transition: All 0.4s ease-in-out;
	-webkit-transition: All 0.4s ease-in-out;
	-moz-transition: All 0.4s ease-in-out;
	-o-transition: All 0.4s ease-in-out;
	width: 200px;
	height: 200px;
	background-color: #000000;
	display: block;
	margin: 100px auto;
	color: #fff;
	text-align: center;
	line-height: 200px;
	font-size: 20px;
	font-weight: bold;
}

.rotate:hover {
	transform: rotate(360deg);
	-webkit-transform: rotate(360deg);
	-moz-transform: rotate(360deg);
	-o-transform: rotate(360deg);
	-ms-transform: rotate(360deg);
}

演示二:放大效果

<a class="scale">放大效果</a>
.scale {
	transition: All 0.4s ease-in-out;
	-webkit-transition: All 0.4s ease-in-out;
	-moz-transition: All 0.4s ease-in-out;
	-o-transition: All 0.4s ease-in-out;
	width: 200px;
	height: 200px;
	background-color: #000000;
	display: block;
	margin: 100px auto;
	color: #fff;
	text-align: center;
	line-height: 200px;
	font-size: 20px;
	font-weight: bold;
}

.scale:hover {
	transform: scale(1.2);
	-webkit-transform: scale(1.2);
	-moz-transform: scale(1.2);
	-o-transform: scale(1.2);
	-ms-transform: scale(1.2);
}

演示三:旋转放大

<a class="rotate_scale">旋转放大</a>
.rotate_scale {
	transition: All 0.4s ease-in-out;
	-webkit-transition: All 0.4s ease-in-out;
	-moz-transition: All 0.4s ease-in-out;
	-o-transition: All 0.4s ease-in-out;
	width: 200px;
	height: 200px;
	background-color: #000000;
	display: block;
	margin: 100px auto;
	color: #fff;
	text-align: center;
	line-height: 200px;
	font-size: 20px;
	font-weight: bold;
}

.rotate_scale:hover {
	transform: rotate(360deg) scale(1.2);
	-webkit-transform: rotate(360deg) scale(1.2);
	-moz-transform: rotate(360deg) scale(1.2);
	-o-transform: rotate(360deg) scale(1.2);
	-ms-transform: rotate(360deg) scale(1.2);
}

演示四:上下移动

<a class="move">上下移动</a>
.move {
	transition: All 0.4s ease-in-out;
	-webkit-transition: All 0.4s ease-in-out;
	-moz-transition: All 0.4s ease-in-out;
	-o-transition: All 0.4s ease-in-out;
	width: 200px;
	height: 200px;
	background-color: #000000;
	display: block;
	margin: 100px auto;
	color: #fff;
	text-align: center;
	line-height: 200px;
	font-size: 20px;
	font-weight: bold;
}

.move:hover {
	transform: translate(0,-10px);
	-webkit-transform: translate(0,-10px);
	-moz-transform: translate(0,-10px);
	-o-transform: translate(0,-10px);
	-ms-transform: translate(0,-10px);
}

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/785.html
css3旋转放大和移动 希望对你有帮助,感谢您的支持!
  • 仿对啊网CSS3大风车旋转动画效果

    仿对啊网CSS3大风车旋转动画效果

  • 纯css3网状布局鼠标经过图片旋转特效

    纯css3网状布局鼠标经过图片旋转特效

  • 旋转的正方体css3制作3D立体效果

    旋转的正方体css3制作3D立体效果

  • css实现3D陀螺旋转

    css实现3D陀螺旋转

  • 纯css3 3D图片立方体旋转动画特效

    纯css3 3D图片立方体旋转动画特效

  • canvas制作旋转的万花筒

    canvas制作旋转的万花筒

  • html5 canvas文字标签云3D旋转动画特效

    html5 canvas文字标签云3D旋转动画特效

  • html5 canvas页面滚动背景图片旋转动画特效

    html5 canvas页面滚动背景图片旋转动画特效

  • css3实现旋转彩色光晕球体

    css3实现旋转彩色光晕球体

  • CSS3实现陀螺旋转特效

    CSS3实现陀螺旋转特效

  • 3D立体旋转美女_纯CSS3实现

    3D立体旋转美女_纯CSS3实现

  • 鼠标移动实现晃动镜头深入云层的效果

    鼠标移动实现晃动镜头深入云层的效果

  • 留言(0)
    头像
     阿里云限量代金券,戳我领取
    1 2