$(function(){ $('#fullpage').fullpage({ 'verticalcentered': false,//verticalcentered瀹氫箟姣忎竴椤电殑鍐呭鏄惁鍨傜洿灞呬腑锛岄粯璁rue 'css3': true,//css3鏄惁浣跨敤css3 transforms鏉ュ疄鐜版粴鍔ㄦ晥鏋滐紝榛樿涓簍rue銆傝嫢娴忚鍣ㄤ笉鏀寔css3锛屽垯浼氱敤jquery鏉ュ疄鐜? //'sectionscolor': ['#000', '#000', '#000', '#000', '#000', '#000', '#222'],//璁剧疆鑳屾櫙棰滆壊 anchors: ['anchor1', 'anchor2', 'anchor3', 'anchor4', 'anchor5', 'anchor6', 'anchor7', 'anchor8'],//瀹氫箟閿氶摼鎺? 'navigation': true,// 鏄惁鏄剧ず椤圭洰瀵艰埅 'navigationposition': 'right',// 瀵艰埅浣嶇疆 scrollingspeed: 700,//璁剧疆婊氬姩閫熷害锛屽崟浣嶆绉掞紝榛樿700 //menu: '#menu',//缁戝畾鑿滃崟 //scrollbar: true,//鏄惁鍖呭惈婊氬姩鏉★紝璁句负true锛屽垯娴忚鍣ㄨ嚜甯︾殑婊氬姩鏉′細鍑虹幇 afterload: function(anchorlink, index){ if(index == 1){//浼佷笟鏂囧寲 } if(index == 2){//fuwu $('.ind_aaa .ind_bta').animate({opacity:'1'}); $('.ind_aaa ul').animate({top:'0',opacity:'1'}); $('.ind_aaa .ind_morea').animate({top:'0',opacity:'1'}); } if(index == 3){//liucheng $('.ind_bbb .ind_bta').animate({opacity:'1'}); $('.ind_bbb_nra').animate({top:'0',opacity:'1'}); $('.ind_bbb_nrc').animate({top:'0',opacity:'1'}); $('.ind_bbb_nre').animate({top:'0',opacity:'1'}); $('.ind_bbb_nrb').animate({top:'35',opacity:'1'}); $('.ind_bbb_nrd').animate({top:'35',opacity:'1'}); } if(index == 4){//xinwen $('.ind_ccc .ind_bta').animate({opacity:'1'}); $('.ind_ccc #tab01').animate({top:'0',opacity:'1'}); $('.ind_ccc .ind_morea').animate({top:'30',opacity:'1'}); } if(index == 5){//anli $('.ind_ddd .ind_bta').animate({opacity:'1'}); $('.ind_ddd .ind_ddd_nr').animate({top:'0',opacity:'1'}); $('.ind_ddd .ind_morea').animate({top:'0',opacity:'1'}); } if(index == 6){//guanyu $('.ind_eee .ind_btb').animate({opacity:'1'}); $('.ind_eee .ind_eee_nr').animate({top:'0',opacity:'1'}); $('.ind_eee .ind_moreb').animate({opacity:'1'}); } if(index == 7){//搴曢儴 $('.top01').addclass('topbj'); } }, onleave: function(index, direction){ if(index == '1'){ } if(index == '2'){ $('.ind_aaa .ind_bta').animate({opacity:'0'}); $('.ind_aaa ul').animate({top:'200',opacity:'0'}); $('.ind_aaa .ind_morea').animate({top:'600',opacity:'0'}); } if(index == '3'){ $('.ind_bbb .ind_bta').animate({opacity:'0'}); $('.ind_bbb_nra').animate({top:'-150px',opacity:'0'}); $('.ind_bbb_nrc').animate({top:'-150px',opacity:'0'}); $('.ind_bbb_nre').animate({top:'-150px',opacity:'0'}); $('.ind_bbb_nrb').animate({top:'135',opacity:'0'}); $('.ind_bbb_nrd').animate({top:'135',opacity:'0'}); } if(index == '4'){ $('.ind_ccc .ind_bta').animate({opacity:'0'}); $('.ind_ccc #tab01').animate({top:'200',opacity:'0'}); $('.ind_ccc .ind_morea').animate({top:'600',opacity:'0'}); } if(index == '5'){//anli $('.ind_ddd .ind_bta').animate({opacity:'0'}); $('.ind_ddd .ind_ddd_nr').animate({top:'200',opacity:'0'}); $('.ind_ddd .ind_morea').animate({top:'600',opacity:'0'}); } if(index == '6'){ $('.ind_eee .ind_btb').animate({opacity:'0'}); $('.ind_eee .ind_eee_nr').animate({top:'200',opacity:'0'}); $('.ind_eee .ind_moreb').animate({opacity:'0'}); } if(index == '7'){ $('.top01').removeclass('topbj'); } } }) })