1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > css实现酷炫的右侧悬浮菜单栏效果(code)

css实现酷炫的右侧悬浮菜单栏效果(code)

时间:2024-04-19 23:20:20

相关推荐

css实现酷炫的右侧悬浮菜单栏效果(code)

web前端|css教程

css,右侧悬浮,菜单栏

web前端-css教程

本文给大家介绍css如何实现酷炫的右侧悬浮菜单栏效果,有一定的参考价值,有需要的朋友可以参考一下,希望对你们有所帮助。

无授权限制 源码,ubuntu 优化设置,tomcat无法启动闪退,金融新闻 爬虫,如何使用php登陆界面,赣县seo网络营销价格优惠lzw

默认显示效果:

简单的asp源码测试iis,vscode 表情包,ubuntu20一直卡在登录,tomcat 主机头,如何装sqlite库,微信抽奖小插件,web前端 开源框架有哪些,爬虫如何抓取网页资源,php 用户在线,seo处理文案,网站没有robots.txt文件,网页模板 韩国,考试页面html模板下载地址lzw

好的论坛社区源码,ubuntu16注销,charles怎么手机爬虫,php 网赚,大冶seo营销lzw

鼠标悬浮效果:

HTML、JS代码如下:

*{margin:0;padding:0;} body{ color:#333;font:12px/20px Arial,"Microsoft YaHei","宋体",sans-serif; text-align:center; background:#fff; } a{text-decoration:none;color:#333;} .rightNav{ position:fixed; width:140px; right:0; top:100px; _position:absolute; text-align:left; cursor:pointer; background-image:url(about:blank); } .rightNav a{ display:block; position:relative; height:30px; line-height:30px; margin-bottom:2px; background:#fff; padding-right:10px; width:130px; overflow:hidden; cursor:pointer; right:-110px; } .rightNav a:hover{ text-decoration:none; color:#39A4DC; } .rightNav a:hover em{ background:#00b700} .rightNav a em{ display:block; float:left; width:30px; background:#39A4DC; color:#fff; font-size:16px; text-align:center; margin-right:10px;} .rightNav a.new em{ background:#f60;}

0综合/组合[new] 1书签切换 2幻灯片 3带按钮切换 4导航/菜单[new] 5切换加载[new] 6其它效果 7特殊

//右侧导航 var btb=$(".rightNav"); var tempS; $(".rightNav").hover(function(){ var thisObj = $(this); tempS = setTimeout(function(){ thisObj.find("a").each(function(i){ var tA=$(this); console.log(i); setTimeout(function(){ tA.animate({right:"0"},200);},50*i); });},200);},function(){if(tempS){ clearTimeout(tempS); }$(this).find("a").each(function(i){ var tA=$(this); setTimeout(function(){ tA.animate({right:"-110"},200,function(){ });},50*i);});});

总结:

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。