效果图:jQuery仿百度新闻标签云关键词代码是一款扁平化风格带动画效果的百度新闻热搜新闻词标签云特效。js代码:<script src="jquery/jquery-2.2.4.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.divA1').eq($(this).index()).animate({top:'0'},5)
})
$('li').mouseenter(function(){
$(this).css('background-color','rgb(24,68,142)')
$('.divA').eq($(this).index()).animate({top:'0'},300)
$('.divA').eq($(this).index()).animate({top:'100%'},150)
$('.divA1').eq($(this).index()).animate({top:'100%'},150)
$(this).find('.divA2').animate({top:'100%'},300)
})
$('li').mouseleave(function(){
$('.divA1').eq($(this).index()).animate({top:'0'},150)
$('.divA').eq($(this).index()).animate({top:'-100%'},10)
$(this).find('.divA2').animate({top:'0'},150)
$(this).css('background','rgb(40,100,187)')
})
</script>
评论
4条评论qazx1314 Lv.1 Chrome 126.0.0.0 Windows 回复
公司手动阀发射点方法是
台湾省台北市 台固媒体股份有限公司(台湾大宽频)BGP节点
shuaile1 Lv.1 Chrome 87.0.4280.88 Windows 8.1 回复
fdsfdsfdsf
江苏省镇江市 移动
jiulela Lv.1 Chrome 109.0.0.0 Windows 回复
666666666666
河南省郑州市 联通
jiulela Lv.1 Chrome 112.0.0.0 Windows 回复
66666666666666666
河南省商丘市 电信