文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

js如何实现平滑过渡大型下拉菜单效果

2024-04-02 19:55

关注

本篇内容主要讲解“js如何实现平滑过渡大型下拉菜单效果”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“js如何实现平滑过渡大型下拉菜单效果”吧!

代码:

<!DOCTYPE HTML>

<html>

    <head>

        <meta charset=utf-8>

        <title>平滑过渡效果大型下拉菜单js特效</title>

        <meta name="keywords" content="平滑过渡,过渡效果,下拉菜单,js特效" />

        <meta name="description" content="一款简单的jQuery大型下拉菜单插件,带有平滑过渡效果,以及鼠标滑过菜单项时的动画效果。" />

        <link rel="stylesheet" href="css/booNavigation.css">

    </head>

 

    <body>

    <div class="wrapper">

            <nav id="booNavigation" class="booNavigation">

                <ul>

                    <li class="navItem">

                        <a href="#">菜单一</a>

                        <ul class="navContent">

                            <li>

                                <ul>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                    <li><a href="#" title="The best cat">The best cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                </ul>

                            </li>

                            <li>

                                <ul>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                    <li><a href="#" title="The best cat">The best cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                </ul>

                            </li>

                            <li>

                                <ul>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                    <li><a href="#" title="The best cat">The best cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                </ul>

                            </li>

                        </ul>

                    </li>

 

                    <li class="navItem">

                        <a href="#">菜单二</a>

                        <ul class="navContent">

                            <li>

                                <ul>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                </ul>

                            </li>

                            <li>

                                <ul>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                </ul>

                            </li>

                            <li>

                                <ul>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                </ul>

                            </li>

                        </ul>

                    </li>

 

                    <li class="navItem">

                        <a href="#">菜单三</a>

                        <ul class="navContent">

                            <li>

                                <ul>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                </ul>

                            </li>

                            <li>

                                <ul>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                </ul>

                            </li>

                            <li>

                                <ul>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Boo the cat">Boo the cat</a><li/>

                                    <li><a href="#" title="The invisible cat">The invisible cat</a><li/>

                                    <li><a href="#" title="The amazing cat">The amazing cat</a><li/>

                                    <li><a href="#" title="Play with Boo the cat">Play with Boo the cat</a><li/>

                                    <li><a href="#" title="Pictures of Boo">Pictures of Boo</a><li/>

                                </ul>

                            </li>

                        </ul>

                    </li>

                </ul>

            </nav>

 

 

                           

        </div>

 

        <!-- Scripts for jQuery and the plugin -->

        <script src="js/jquery.min.js"></script>

        <script src="js/booNavigation.js"></script>

        <script>

        (function() {

 

           

            $('#booNavigation').booNavigation({

                slideSpeed: 400

            });

 

            $('#booNavigationTwo').booNavigation({

                slideSpeed: 200

            });

 

        })();

 

        </script>

    </body>

</html>

到此,相信大家对“js如何实现平滑过渡大型下拉菜单效果”有了更深的了解,不妨来实际操作一番吧!这里是编程网网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-前端开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯