//lettering
$(".lett").lettering();
$(".lett_word").lettering("words");
//than
$(".lett span , .lett_word span").wrap("
");
//lettering
$("#w_sfbox-1564627146579 .ping_1>.w_fimgbox-001:nth-child(1)>.w_imgbox>img").wrap("");
$("#wns_p2_bg").find("img:nth-child(1)").after("");
$("#wns_p2_bg").find("img:nth-child(2)").after("");
$("#wns_p2_bg").find("img:nth-child(3)").after("");
//图片转换成背景
function SetImgCover() {
$(".cc_img img").each(function() {
var this_src = $(this).attr("src");
$(this).wrap("");
$(this).css('display','none');
});
}
SetImgCover();
//图片转换成背景
$(function(){
//导航效果
$(".header .nav-wrap .list ul").width($(".header .nav-wrap .list li").length * 390);
$(".header .nav-wrap .list li").hover(function() {
$(this).find('.line,.intr,.more').stop().animate({
opacity: 1
}, 600);
$(this).find('.box').stop().animate({
marginTop: -10
}, 600);
}, function() {
$(this).find('.line,.intr,.more').stop().animate({
opacity: 0
}, 600);
$(this).find('.box').stop().animate({
marginTop: 0
}, 600);
});
//导航点击展开
$(".header .nav-btn").click(function() {
if ($(this).hasClass('hover')) {
$(this).removeClass('hover');
$(".header .center,.header .city-sign,.header .log-link").fadeIn(500);
$(".header .nav-wrap").stop().fadeOut(600);
$(this).find('.line-cen').stop().fadeIn(500);
$(this).find('.line-top,.line-bot').stop().transition({rotate: 0}, 500);
}else{
$(this).addClass('hover');
$(".header .center,.header .city-sign,.header .log-link").fadeOut(500);
$(".header .nav-wrap").stop().fadeIn(600);
$(this).find('.line-cen').stop().fadeOut(500);
$(this).find('.line-top').stop().transition({rotate: 45}, 500);
$(this).find('.line-bot').stop().transition({rotate: -45}, 500);
}
});
//导航滚动
$(".header .nav-wrap .list").mousemove(function(e){
var _W = $(window).width(),
_liW = _W*0.11,
_sw = _W*0.89,
_ulW = $(".header .nav-wrap .list li").length * 390;
var left=-1*((_ulW-_sw)/_W)*(e.pageX);
$(this).children('ul').css({"left":left});
});
});
//关于威斯尼斯人wns8888
var set_o = "#wns_p2_l > div";
var set_m = "#wns_p2_bg > div";
var o_index;
$(set_o).mouseenter(function() {
$(this).siblings().removeClass("active");
$(this).addClass("active");
o_index = $(this).index();
$(set_m).siblings().removeClass("active");
$(set_m).eq(o_index).addClass("active");
});
//延迟时间
var delayi = 1;
function Count_delay() {
if(delayi<300){
$(".trans_dl_1 span.char" + delayi).css("animation-delay",delayi*0.15 + "s");
delayi++;
Count_delay();
}
}
//关于威斯尼斯人wns8888
//执行
$(function(){
Count_delay();
});