鼠标移上去以中心为原点慢慢出现

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Home</title>
	
	<script src="http://og9n58fei.bkt.clouddn.com/jquery-2.2.4.min.js"></script>
</head>
<style>
.gallery1 {
    position: relative;
}
.gallery-grid {
    padding: 0;
}
body a {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}
.gallery-grid img {
    width: 100%;
}
.gallery1 .textbox {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
    background-color: rgba(31, 45, 113, 0.74);
}
.gallery1:hover .textbox {
    -webkit-transform: scale(1);
    transform: scale(1);
}
.textbox {
    -webkit-transition: all 0.7s ease;
    transition: all 0.7s ease;
    text-align: center;
}
.textbox h4 {
    font-size: 2.5em;
    color: #fff;
    margin-top: 4em;
}
.textbox p {
    font-size: 15px !important;
    color: #fff;
    font-weight: 500 !important;
    margin: 22px 0 0 0!important;
}

</style>

<body>

<div class=" gallery-grid gallery1" style="width:30%;">
					<a href="http://ohcs36xup.bkt.clouddn.com/image_2.jpg" class="swipebox"><img src="http://ohcs36xup.bkt.clouddn.com/image_2.jpg" class="img-responsive" alt="/">
						<div class="textbox">
							<h4>Day Spa</h4>
							<p>Welcome</p>
							
						</div>
				</a>
				</div>
				
</body>
</html>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值