jquery实现的按鼠标滑过方向增加元素边框html页面源码

大家好,今天给大家介绍一款,jquery实现的按鼠标滑过方向增加元素边框html页面源码(图1)。送给大家哦,获取方式在本文末尾。

图1

按鼠标经过的方向控制背景方块元素移动(图2)

图2

源码完整,需要的朋友可以下载学习(图3)

图3

本源码编码:10151,需要的朋友,点击下面的链接后,搜索10151,即可获取。

<!doctype html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>jQuery插件--鼠标滑过(方向)图片边框特效</title>

	<style type="text/css">
		body{background-color: #272727}
		.wrapper{width: 680px;margin: 50px auto;}
		.img{margin: 10px;width:200px;height:200px;}
	</style>
</head>
<body>

		<div class="wrapper">
			<img src="static/picture/t1.png" class="img">
			<img src="static/picture/t2.png" class="img">
			<img src="static/picture/t3.png" class="img">
			<br>
			<img src="static/picture/t3.png" class="img">
			<img src="static/picture/t1.png" class="img" style="border-radius: 40px; -moz-border-radius : 40px;">
			<img src="static/picture/t2.png" class="img">
			<br>
			<img src="static/picture/t1.png" class="img">
			<img src="static/picture/t2.png" class="img">
			<img src="static/picture/t3.png" class="img">
		</div>

	<script src="static/js/jquery-1.10.2.js"></script>
	<script type="text/javascript" src="static/js/jquery.focus-follow.js"></script>
	<script>
		$(function() {
			$(".img").focusFollow({
				wrapper: '#wrapper',
				color: '#00dcff',
				opacity: 0.5,
				margin_horizontal: 8,
				margin_vertical: 8,
				speed: 300,
				timeout: 500
			});
		});
	</script>
</body>
</html>

本源码编码:10151,需要的朋友,点击下面的链接后,搜索10151,即可获取。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值