为了账号安全,请及时绑定邮箱和手机立即绑定

怎么我的点击“查看详情”之后跳出来的是这个界面?


http://img1.sycdn.imooc.com//55fbc3a80001dc5003410524.jpg

// JavaScript Document
(function($){
	
	// 定义变量
	var container = $(".container");
	var box = $(".box");
	var buddy = $(".buddy");
	var pop = $(".pop");
	var open =$(".btn");
	var close = $(".close");
	var imgs = pop.find('img');
	
	//自定义动画
	$.Velocity.RegisterUI("lixin.slideUpIn",{
		defaultDuration:500,
		calls:[
			[{opacity:[1,0],translateY:[0,100]}]
		]
	});
	
	$.Velocity.RegisterUI("lixin.slideDownOut",{
		defaultDuration:300,
		calls:[
			[{opacity:[0,1],translateY:[100,0]}]
		]
	});
	
	$.Velocity.RegisterUI('lixin.scaleIn',{
		defaultDuration:300,
		calls:[
			[{opacity:[1,0],scale:[1,0.3]}]
			]
		});
		
	$.Velocity.RegisterUI('lixin.scaleOut',{
		defaultDuration:300,
		calls:[
			[{opacity:[0,1],scale:[0.3,1]}]
			]
		});
		
	// 动画序列	
	var seqInit = [{
		elements:container,
		properties:'lixin.slideUpIn',
		options:{
			delay:300
		}
	},{
		elements:box,
		properties:'lixin.slideUpIn',
		options:{
			sequenceQueue:false
		}
	},{
		elements:buddy,
		properties:'lixin.slideUpIn',
		options:{
			sequenceQueue:false,
			delay:60
		}
	}];
		
	var seqClick = [{
		elements:container,
		properties:'lixin.slideDownOut',
	},{
		elements:box,
		properties:'lixin.slideDownOut',
		options:{
			sequenceQueue:false
		}
	},{
		elements:container,
		properties:'lixin.slideUpIn'
	},{
		elements:pop,
		proterties:'lixin.slideUpIn',
		options:{
			sequenceQueue:false
		}
	},{
		elements:imgs,
		properties:'lixin.scaleIn'
	}];
	
	var seqClose = [{
		elements:imgs,
		properties:'lixin.scaleOut'
	},{
		elements:container,
		properties:'lixin.slideDownOut'
	},{
		elements:pop,
		properties:'lixin.slideDownOut',
		options:{
		     sequenceQueue:false	
		}
	},{
		elements:container,
		properties:'lixin.slideUpIn'
	},{
		elements:box,
		properties:'lixin.slideUpIn',
		options:{
			sequenceQueue:false
		}
	}];
	
	// 事件绑定	
	$.Velocity.RunSequence(seqInit);
	
	open.on('click',function(){
		$.Velocity.RunSequence(seqClick);
	});
	
	close.on('click',function(){
		$.Velocity.RunSequence(seqClose);
	});
	
})(jQuery);


正在回答

1 回答

css文件或html文件可能写的有问题,把所有代码都贴出来看看

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

怎么我的点击“查看详情”之后跳出来的是这个界面?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信