首页 > 编程语言 >​b站视频演示效果:【web前端特效源码】使用HTML5+CSS3+JavaScript十分钟快速制作一个简约大气动漫卡通静态网站|自制超简单的卡通类网页,网页设计期末大作业源代码效果图:

​b站视频演示效果:【web前端特效源码】使用HTML5+CSS3+JavaScript十分钟快速制作一个简约大气动漫卡通静态网站|自制超简单的卡通类网页,网页设计期末大作业源代码效果图:

时间:2024-06-18 21:28:51浏览次数:28  
标签:网页 这里 标题 源码 服务 年月日 源代码 前端开发 描述

b站视频演示效果:

<iframe allowfullscreen="true" data-mediaembed="bilibili" frameborder="0" id="SRPNjcKp-1718635371440" src="https://player.bilibili.com/player.html?aid=1305793077"></iframe>

【网页设计期末大作业源代码】使用HTML5+CSS3+JavaScript十分钟快速制作一个简约大气卡通动漫静态网站|自制超简单的卡通类网页,响应式自适应新手友

效果图:

完整代码:

<!DOCTYPE html>
<html>
<head>
    <title>Home</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content=""/>
    <!-- css links -->
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all">
    <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all"/>
    <link rel="stylesheet" type="text/css" href="css/caption-hover.css"/>
    <link rel="stylesheet" type="text/css" href="css/circle-hover.css"/>
    <link href="css/slider.css" rel="stylesheet" type="text/css" media="all">
    <link href="css/style.css" rel="stylesheet" type="text/css" media="all">
    <!-- /css links -->
    <link href='#css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
    <link href='#css?family=Poiret+One' rel='stylesheet' type='text/css'>
    <script src="js/SmoothScroll.min.js"></script>
    <script type="text/javascript" src="js/modernizr.custom.js"></script>
</head>
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#myPage">主题名称</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li class="active"><a href="#myPage">首页</a></li>
                <li><a href="#about">关于我们</a></li>
                <li><a href="#services">服务</a></li>
                <li><a href="#portfolio">作品集</a></li>
                <li><a href="#contact">联系我们</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>

<!-- /Fixed navbar -->
<!-- Banner -->
<div class="banner">
    <div id="content">
        <div id="slider">
            <img src="images/banner1.jpg" alt="这里是" data-url="#1">
            <img src="images/banner2.jpg" alt="你的" data-url="#2">
            <img src="images/banner3.jpg" alt="主题名称" data-url="#3">
            <img src="images/banner4.jpg" alt="随便修改" data-url="#4">
        </div>
    </div>
</div>
<!-- /Banner -->
<!-- About -->
<section class="about-us" id="about">
    <h3 class="text-center slideanim">关于我们</h3>
    <div class="container">
        <div class="row">
            <div class="col-lg-4 col-lg-offset-2 slideanim">
                <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
            </div>
            <div class="col-lg-4 slideanim">
                <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
            </div>
        </div>
    </div>
</section>
<div class="content-section-a">
    <div class="container">
        <div class="row">
            <div class="col-lg-5 col-sm-6">
                <div class="content1">
                    <h3 class="section-heading slideanim">这里是标题
                        这里是描述这里是描述这里是描述这里是描述这里是描述</h3>
                    <hr class="section-heading-spacer slideanim">
                    <div class="clearfix"></div>
                    <p class="lead slideanim">这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                </div>
            </div>
            <div class="col-lg-5 col-lg-offset-2 col-sm-6 slideanim">
                <ul class="grid cs-style">
                    <li>
                        <figure>
                            <img src="images/farm1.jpg" alt="" class="img-responsive">
                            <figcaption>
                                <h3>这里是标题</h3>
                                <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                            </figcaption>
                        </figure>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="content-section-b">
    <div class="container">
        <div class="row">
            <div class="col-lg-5 col-lg-offset-1 col-sm-push-6 col-sm-6">
                <div class="content2">
                    <h3 class="section-heading slideanim">这里是标题</h3>
                    <hr class="section-heading-spacer slideanim">
                    <div class="clearfix"></div>
                    <p class="lead slideanim">这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                </div>
            </div>
            <div class="col-lg-5 col-sm-pull-6 col-sm-6 slideanim">
                <ul class="grid cs-style">
                    <li>
                        <figure>
                            <img src="images/farm2.jpg" alt="" class="img-responsive">
                            <figcaption>
                                <h3>这里是标题</h3>
                                <p>这里是描述</p>
                            </figcaption>
                        </figure>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="content-section-a">
    <div class="container">
        <div class="row">
            <div class="col-lg-5 col-sm-6">
                <div class="content3">
                    <h3 class="section-heading slideanim">这里是标题
                        这里是描述这里是描述这里是描述这里是描述这里是描述</h3>
                    <hr class="section-heading-spacer slideanim">
                    <div class="clearfix"></div>
                    <p class="lead slideanim">这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                </div>
            </div>
            <div class="col-lg-5 col-lg-offset-2 col-sm-6 slideanim">
                <ul class="grid cs-style">
                    <li>
                        <figure>
                            <img src="images/farm3.jpg" alt="" class="img-responsive">
                            <figcaption>
                                <h3>这里是标题</h3>
                                <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                            </figcaption>
                        </figure>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- /About -->
<!-- /Services -->
<section class="our-services" id="services">
    <h3 class="text-center slideanim">服务</h3>
    <ul class="ch-grid">
        <li>
            <div class="ch-item ch-img-1 slideanim">
                <div class="ch-info-wrap">
                    <div class="ch-info">
                        <div class="ch-info-front ch-img-1"></div>
                        <div class="ch-info-back">
                            <h5>服务名1</h5>
                            <p>服务描述描述描述</p>
                        </div>
                    </div>
                </div>
            </div>
            <h4 class="slideanim">服务名1</h4>
            <p class="slideanim">服务描述描述描述</p>
        </li>
        <li>
            <div class="ch-item ch-img-2 slideanim">
                <div class="ch-info-wrap">
                    <div class="ch-info">
                        <div class="ch-info-front ch-img-2"></div>
                        <div class="ch-info-back">
                            <h5>服务名2</h5>
                            <p>服务描述描述描述</p>
                        </div>
                    </div>
                </div>
            </div>
            <h4 class="slideanim">服务名2</h4>
            <p class="slideanim">服务描述描述描述</p>
        </li>
        <li>
            <div class="ch-item ch-img-3 slideanim">
                <div class="ch-info-wrap">
                    <div class="ch-info">
                        <div class="ch-info-front ch-img-3"></div>
                        <div class="ch-info-back">
                            <h5>服务名3</h5>
                            <p>服务描述描述描述</p>
                        </div>
                    </div>
                </div>
            </div>
            <h4 class="slideanim">服务名3</h4>
            <p class="slideanim">服务描述描述描述</p>
        </li>
        <li>
            <div class="ch-item ch-img-4 slideanim">
                <div class="ch-info-wrap">
                    <div class="ch-info">
                        <div class="ch-info-front ch-img-4"></div>
                        <div class="ch-info-back">
                            <h5>服务名4</h5>
                            <p>服务描述描述描述</p>
                        </div>
                    </div>
                </div>
            </div>
            <h4 class="slideanim">服务名4</h4>
            <p class="slideanim">使用先进的灌溉技术</p>
        </li>
    </ul>
</section>
<!-- /Services -->
<!-- Portfolio Grid Section -->
<section id="portfolio">
    <h3 class="text-center slideanim">作品集</h3>
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-sm-6 col-xs-12 portfolio-item slideanim">
                <a href="#portfolioModal1" class="portfolio-link" data-toggle="modal">
                    <div class="caption">
                        <div class="caption-content">
                            <i class="fa fa-paper-plane-o"></i>
                        </div>
                    </div>
                    <img src="images/port1.jpg" class="img-responsive" alt="">
                </a>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-12 portfolio-item slideanim">
                <a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
                    <div class="caption">
                        <div class="caption-content">
                            <i class="fa fa-paper-plane-o"></i>
                        </div>
                    </div>
                    <img src="images/port2.jpg" class="img-responsive" alt="">
                </a>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-12 portfolio-item slideanim">
                <a href="#portfolioModal3" class="portfolio-link" data-toggle="modal">
                    <div class="caption">
                        <div class="caption-content">
                            <i class="fa fa-paper-plane-o"></i>
                        </div>
                    </div>
                    <img src="images/port3.jpg" class="img-responsive" alt="">
                </a>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-12 portfolio-item slideanim">
                <a href="#portfolioModal4" class="portfolio-link" data-toggle="modal">
                    <div class="caption">
                        <div class="caption-content">
                            <i class="fa fa-paper-plane-o"></i>
                        </div>
                    </div>
                    <img src="images/port4.jpg" class="img-responsive" alt="">
                </a>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-12 portfolio-item slideanim">
                <a href="#portfolioModal5" class="portfolio-link" data-toggle="modal">
                    <div class="caption">
                        <div class="caption-content">
                            <i class="fa fa-paper-plane-o"></i>
                        </div>
                    </div>
                    <img src="images/port5.jpg" class="img-responsive" alt="">
                </a>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-12 portfolio-item slideanim">
                <a href="#portfolioModal6" class="portfolio-link" data-toggle="modal">
                    <div class="caption">
                        <div class="caption-content">
                            <i class="fa fa-paper-plane-o"></i>
                        </div>
                    </div>
                    <img src="images/port6.jpg" class="img-responsive" alt="">
                </a>
            </div>
        </div>
    </div>
</section>
<!-- /Portfolio Grid Section -->
<!-- Portfolio Modals -->
<div class="portfolio-modal modal fade slideanim" id="portfolioModal1" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <div class="close-modal" data-dismiss="modal">
            <div class="lr">
                <div class="rl"></div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="modal-body">
                        <h3>这里是标题</h3>
                        <hr>
                        <img src="images/port1.jpg" class="img-responsive img-centered" alt="">
                        <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
                            Close
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="portfolio-modal modal fade slideanim" id="portfolioModal2" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <div class="close-modal" data-dismiss="modal">
            <div class="lr">
                <div class="rl"></div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="modal-body">
                        <h3>这里是标题</h3>
                        <hr>
                        <img src="images/port2.jpg" class="img-responsive img-centered" alt="">
                        <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
                            Close
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="portfolio-modal modal fade slideanim" id="portfolioModal3" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <div class="close-modal" data-dismiss="modal">
            <div class="lr">
                <div class="rl"></div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="modal-body">
                        <h3>这里是标题</h3>
                        <hr>
                        <img src="images/port3.jpg" class="img-responsive img-centered" alt="">
                        <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
                            Close
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="portfolio-modal modal fade slideanim" id="portfolioModal4" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <div class="close-modal" data-dismiss="modal">
            <div class="lr">
                <div class="rl"></div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="modal-body">
                        <h3>这里是标题</h3>
                        <hr>
                        <img src="images/port4.jpg" class="img-responsive img-centered" alt="">
                        <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
                            Close
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="portfolio-modal modal fade slideanim" id="portfolioModal5" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <div class="close-modal" data-dismiss="modal">
            <div class="lr">
                <div class="rl"></div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="modal-body">
                        <h3>这里是标题</h3>
                        <hr>
                        <img src="images/port5.jpg" class="img-responsive img-centered" alt="">
                        <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
                            Close
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="portfolio-modal modal fade slideanim" id="portfolioModal6" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <div class="close-modal" data-dismiss="modal">
            <div class="lr">
                <div class="rl"></div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="modal-body">
                        <h3>这里是标题</h3>
                        <hr>
                        <img src="images/port6.jpg" class="img-responsive img-centered" alt="">
                        <p>这里是描述这里是描述这里是描述这里是描述这里是描述</p>
                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
                            Close
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /Portfolio Modals -->
<!-- Blog -->
<section class="our-blog" id="blog">
    <h3 class="text-center slideanim">我们的各种博客</h3>
    <div class="container">
        <div class="row">
            <div class="col-md-3 col-xs-12">
                <div class="view view-seventh slideanim">
                    <img src="images/blog1.jpg" alt="" class="img-responsive"/>
                    <div class="mask">
                        <h5>年月日</h5>
                        <p>这里是标题</p>
                        <a href="#contact-info" class="info">写信给我们</a>
                    </div>
                </div>
                <div class="blog-content slideanim">
                    <p class="p1">年月日</p>
                    <a href="#"><h4>这里是标题</h4></a>
                    <p class="p2">这里是描述这里是描述</p>
                </div>
            </div>
            <div class="col-md-3 col-xs-12">
                <div class="view view-seventh slideanim">
                    <img src="images/blog2.jpg" alt="" class="img-responsive"/>
                    <div class="mask">
                        <h5>年月日</h5>
                        <p>这里是标题</p>
                        <a href="#contact-info" class="info">写信给我们</a>
                    </div>
                </div>
                <div class="blog-content slideanim">
                    <p class="p1">年月日</p>
                    <a href="#"><h4>这里是标题</h4></a>
                    <p class="p2">这里是描述这里是描述</p>
                </div>
            </div>
            <div class="col-md-3 col-xs-12">
                <div class="view view-seventh slideanim">
                    <img src="images/blog3.jpg" alt="" class="img-responsive"/>
                    <div class="mask">
                        <h5>年月日</h5>
                        <p>这里是标题</p>
                        <a href="#contact-info" class="info">写信给我们</a>
                    </div>
                </div>
                <div class="blog-content slideanim">
                    <p class="p1">年月日</p>
                    <a href="#"><h4>这里是标题</h4></a>
                    <p class="p2">这里是描述这里是描述</p>
                </div>
            </div>
            <div class="col-md-3 col-xs-12">
                <div class="view view-seventh slideanim">
                    <img src="images/blog4.jpg" alt="" class="img-responsive"/>
                    <div class="mask">
                        <h5>年月日</h5>
                        <p>这里是标题</p>
                        <a href="#contact-info" class="info">写信给我们</a>
                    </div>
                </div>
                <div class="blog-content slideanim">
                    <p class="p1">年月日</p>
                    <a href="#"><h4>这里是标题</h4></a>
                    <p class="p2">这里是描述这里是描述</p>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- /Blog -->
<!-- Contact-Us -->
<section class="contact-us" id="contact">
    <h2 class="text-center slideanim">联系我们</h2>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-xs-12 slideanim">
                <iframe class="googlemaps"
                        src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d380510.6741687111!2d121.4737!3d31.2304!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sin!4v1455598377120"
                        frameborder="0" style="border:0" allowfullscreen></iframe>
            </div>

            <div class="col-md-4 col-xs-12 slideanim">
                <h4>联系方式 :</h4>
                <p>手机号码:1391231234</p>
                <p>邮箱:<a href="mailto:[email protected]">[email protected]</a></p>
                <p>地址:中国上海浦东新区长河街道落日路999号</p>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</section>
<!-- /Contact-Us -->
<!-- Contact-Form -->
<section class="contact-form" id="contact-info">
    <h3 class="text-center slideanim">联系表</h3>
    <p class="text-center slideanim">欢迎和我们联系,欢迎来电来函。</p>
    <div class="container">
        <div class="row">
            <div class="col-lg-12 slideanim">
                <form role="form">
                    <div class="row">
                        <div class="form-group col-lg-4">
                            <label>姓名</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="form-group col-lg-4">
                            <label>邮箱</label>
                            <input type="email" class="form-control">
                        </div>
                        <div class="form-group col-lg-4">
                            <label>手机号码</label>
                            <input type="tel" class="form-control">
                        </div>
                        <div class="clearfix"></div>
                        <div class="form-group col-lg-12">
                            <label>信息</label>
                            <textarea class="form-control" rows="6"></textarea>
                        </div>
                        <div class="form-group col-lg-12">
                            <button type="submit" href="#" class="btn btn-lg btn-outline">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
<!-- /Contact-Form -->
<!-- Footer -->
<footer class="text-center slideanim">
    <div class="footer-above">
        <div class="container">
            <div class="row">
                <div class="footer-col col-md-4">
                    <h4>公司地址</h4>
                    <p>中国上海<br>长亭外古道边</p>
                </div>
                <div class="footer-col col-md-4">
                    <h4>社交账号</h4>
                    <ul class="list-inline">
                        <li>
                            <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-facebook"></i></a>
                        </li>
                        <li>
                            <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-google-plus"></i></a>
                        </li>
                        <li>
                            <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-twitter"></i></a>
                        </li>
                        <li>
                            <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-linkedin"></i></a>
                        </li>
                        <li>
                            <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-dribbble"></i></a>
                        </li>
                    </ul>
                </div>
                <div class="footer-col col-md-4">
                    <h4>关于本公司的介绍</h4>
                    <p>这里是本公司的介绍,本公司的介绍本公司的介绍本公司的介绍</p>
                </div>
            </div>
        </div>
    </div>
    <div class="footer-below">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <p>版权所有 &copy; 2025.公司名称 保留所有权利。</p>
                </div>
            </div>
        </div>
        <a href="#myPage" title="返回顶部">
            <span class="glyphicon glyphicon-chevron-up"></span>
        </a>
    </div>
</footer>

<!-- js files -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/classie.js"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/index.js"></script>
<script src="js/index2.js"></script>
<script>
    // 用来实现页面内的平滑滚动效果
    $(document).ready(function () {
        // 当文档准备好后执行以下代码

        // 为导航栏和页脚中的所有链接添加平滑滚动效果
        $(".navbar a, footer a[href='#myPage']").on('click', function (event) {

            // 阻止默认的锚点点击行为
            event.preventDefault();

            // 存储当前锚点的哈希值
            var hash = this.hash;

            // 使用 jQuery 的 animate() 方法来添加平滑滚动效果
            // 可选数字(900)指定滚动到指定区域所需的毫秒数
            $('html, body').animate({
                scrollTop: $(hash).offset().top
            }, 900, function () {

                // 当滚动完成后,在 URL 中添加哈希值(默认的点击行为)
                window.location.hash = hash;
            });
        });
    })
</script>

<script>

    // 在用户滚动页面时,检查每个具有 slideanim 类的元素,如果该元素的位置进入了视口(即距离窗口顶部小于600像素),则为该元素添加 slide 类,从而触发相应的滑动动画效果。
    $(window).scroll(function () {
        // 当窗口发生滚动时执行以下代码
        $(".slideanim").each(function () {
            // 遍历所有具有 slideanim 类的元素
            var pos = $(this).offset().top;
            // 获取当前元素到页面顶部的距离

            var winTop = $(window).scrollTop();
            // 获取窗口滚动条距离页面顶部的距离
            if (pos < winTop + 600) {
                // 如果当前元素的位置小于窗口滚动位置加 600
                $(this).addClass("slide");
                // 为当前元素添加 slide 类,触发 CSS 动画效果
            }
        });
    });
</script>

<!-- /js files -->
</body>
</html>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

各位同学们:还有啥想看的功能或者特效不?欢迎在评论区留言哦!

本人承接网网站开发,如有需要,欢迎私信咨询!

如果您感觉文章对您有帮助~
那就打赏一下,请笔者喝杯咖啡吧~

给新手学习前端开发的建议:

  1. 了解基础知识

    • 学习HTML、CSS和JavaScript的基础知识。它们是前端开发的核心,构成了网页的基本结构和样式,以及交互功能。
    • 掌握HTML的标签和语义化,了解CSS的选择器和布局技巧,熟悉JavaScript的基本语法和DOM操作。
  2. 实践项目

    • 不要仅仅停留在理论学习上,通过实践项目来巩固和应用所学知识。
    • 可以从简单的静态页面开始,逐渐尝试添加交互效果和动态数据。
    • 参与开源项目或自己动手创建一个个人网站,将所学知识应用到实际场景中。
  3. 学习工具和框架

    • 了解并学习前端开发中常用的工具和框架,如构建工具(Webpack、Gulp等)、版本控制工具(Git)、前端框架(React、Vue、Angular等)。
    • 这些工具和框架能够提高开发效率,简化开发流程,是前端开发的重要组成部分。
  4. 关注前端趋势

    • 前端开发是一个快速发展的领域,新的技术和工具不断涌现。
    • 关注前端社区、博客和会议,了解最新的技术趋势和发展方向,保持学习的热情和动力。
  5. 培养解决问题的能力

    • 前端开发常常会遇到各种问题和挑战,学会独立思考和解决问题是非常重要的。
    • 遇到问题时,可以先尝试自己解决,通过查阅文档、搜索资料和社区讨论来找到答案。
    • 如果实在无法解决,可以向同事或社区求助,但也要学会总结和分享自己的经验和教训。
  6. 不断学习和提升

    • 前端开发是一个不断学习和提升的过程,要保持对知识的渴望和追求。
    • 可以通过阅读书籍、参加培训、参与开源项目等方式来不断提升自己的技能水平。
    • 同时,也要关注自己的职业发展,了解行业的需求和趋势,规划自己的职业道路。
  7. 注重代码质量和可维护性

    • 编写高质量的代码是前端开发的基本要求之一。
    • 学习并遵循代码规范,使用适当的命名和注释来提高代码的可读性。
    • 注重代码的结构和逻辑,避免过度嵌套和复杂的逻辑。
    • 考虑代码的可维护性,尽量编写可复用和可扩展的代码。
  8. 参与社区和交流

    • 加入前端开发的社区和论坛,与其他开发者进行交流和分享。
    • 通过参与社区活动、回答问题、分享经验等方式,不仅可以提升自己的技能水平,还可以结识更多的同行和朋友。

总之,学习前端开发需要耐心和毅力,要保持对技术的热情和兴趣,不断学习和提升自己。通过实践项目、学习工具和框架、关注前端趋势等方式,你可以逐渐成为一名优秀的前端开发者。

加油吧!

标签:网页,这里,标题,源码,服务,年月日,源代码,前端开发,描述
From: https://blog.csdn.net/qq_22182989/article/details/139756195

相关文章