注册 登录 充值会员 退出
网站、APP、小程序等定制开发,联系QQ 1206995177 毕业设计 java源码 PHP源码
充值

jQuery仿百度新闻标签云关键词代码

作者/代码整理:  (源码已亲测,不会安装的可以向QQ1915635791要安装视频教程) 发布日期:2022-06-19
jQuery仿百度新闻标签云关键词代码
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>