jquery实现透明度轮播图特效

jquery实现透明度轮播图特效

素材圈再送一款jquery实现透明度轮播图特效,超级炫酷的jquery实现透明度轮播图特效。

淘建站为您提供更多_图片代码_图片轮播_轮播_透明,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 53 次

下载资源

16 积分

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

$(document).ready(function(){

	/* This code is executed on the document ready event */

	var left	= 0,
		top		= 0,
		sizes	= { retina: { width:190, height:190 }, webpage:{ width:500, height:283 } },
		webpage	= $('#webpage'),
		offset	= { left: webpage.offset().left, top: webpage.offset().top },
		retina	= $('#retina');

	if(navigator.userAgent.indexOf('Chrome')!=-1)
	{
		/*	Applying a special chrome curosor,
			as it fails to render completely blank curosrs. */
			
		retina.addClass('chrome');
	}
	
	webpage.mousemove(function(e){

		left = (e.pageX-offset.left);
		top = (e.pageY-offset.top);

		if(retina.is(':not(:animated):hidden')){
			/* Fixes a bug where the retina div is not shown */
			webpage.trigger('mouseenter');
		}

		if(left<0 || top<0 || left > sizes.webpage.width || top > sizes.webpage.height)
		{
			/*	If we are out of the bondaries of the
				webpage screenshot, hide the retina div */

			if(!retina.is(':animated')){
				webpage.trigger('mouseleave');
			}
			return false;
		}

		/*	Moving the retina div with the mouse
			(and scrolling the background) */

		retina.css({
			left				: left - sizes.retina.width/2,
			top					: top - sizes.retina.height/2,
			backgroundPosition	: '-'+(1.6*left)+'px -'+(1.35*top)+'px'
		});
		
	}).mouseleave(function(){
		retina.stop(true,true).fadeOut('fast');
	}).mouseenter(function(){
		retina.stop(true,true).fadeIn('fast');
	});
});
//html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery 图片放大镜仿iphone苹果手机图片文字放大查看效果</title>
<meta name="description" content="jquery图片放大镜制作仿iphone苹果手机浏览网页图片文字放大查看效果,带放大镜查看图片文字放大预览效果。" />
</head>

<body>

<div id="main">

	<div id="iphone">
    	<div id="webpage">
			<img src="img/webpage.png" width="499" height="283" alt="Web Page" />
        	<div id="retina"></div>
        </div>
    </div>
    
</div>

<link rel="stylesheet" type="text/css" href="styles.css" />

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>

</body>
</html>

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/1113.html
jquery实现透明度轮播图特效 希望对你有帮助,感谢您的支持!
  • html5 slider响应式图片轮播插件

    html5 slider响应式图片轮播插件

  • jQuery网页屏幕上雪花飘落动画特效

    jQuery网页屏幕上雪花飘落动画特效

  • jQuery随便飘洒的落叶动画效果

    jQuery随便飘洒的落叶动画效果

  • jQuery点击商品飞入购物车特效

    jQuery点击商品飞入购物车特效

  • jQuery实现多种效果图片轮播焦点图代码

    jQuery实现多种效果图片轮播焦点图代码

  • jQuery动画 图片飞入飞出

    jQuery动画 图片飞入飞出

  • jQuery圣诞节下雪动画特效

    jQuery圣诞节下雪动画特效

  • JQuery-花瓣飘落背景特效

    JQuery-花瓣飘落背景特效

  • jQuery温度计动画显示温度计数量代码

    jQuery温度计动画显示温度计数量代码

  • jQuery心电图动画特效_心电图走势动画特效

    jQuery心电图动画特效_心电图走势动画特效

  • jquery白天黑夜动画制作白天黑夜变化特效

    jquery白天黑夜动画制作白天黑夜变化特效

  • 非常逼真透明Flash蜂鸟动画素材源码下载

    非常逼真透明Flash蜂鸟动画素材源码下载

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