前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >个人导航页源码

个人导航页源码

作者头像
meowrain
发布2021-04-22 15:57:52
1.2K0
发布2021-04-22 15:57:52
举报
文章被收录于专栏:MeowRain的博客MeowRain的博客

html

代码语言:javascript
复制
<html>

<head>

<title>MGSY</title>

<link rel="stylesheet" type="text/css" href="./style.css">

<meta charset="UTF-8">
<meta itemprop="name" content="猫狗鼠鱼导航" />

<meta itemprop="image" content="http://fp1.fghrsh.net/2020/11/15/b8a12657ce622ee2979ec75beb51b96c.jpg" />

<meta name="description" itemprop="description" content="猫狗鼠鱼导航-储物间-bilibili-github" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css"/>

</head>

<body>

<div class="content">

<div class="logo">

<img src="https://gitee.com/lr787/img/raw/master/img/QQ%E5%9B%BE%E7%89%8720200823182716.jpg" alt="logo">

<br>

<h1 style="color: white"><i class="fa fa-bolt" aria-hidden="true"></i>猫狗鼠鱼<i class="fa fa-bolt" aria-hidden="true"></i></h1>

</div>

<div class="nav">

<a href="https://www.mgsy007.top">

<span>mgsy</span>

<span>007</span>

<span>keep</span>

<span>going</span>

<i class="fa fa-moon-o" aria-hidden="true"></i>BLOG

</a>

<a href="https://mgsy007.top/links/">

<span></span>

<span></span>

<span></span>

<span></span>

<i class="fa fa-users" aria-hidden="true"></i> Friends

</a>

<a href="https://space.bilibili.com/386388600">

<span></span>

<span></span>

<span></span>

<span></span>

<i class="fa fa-battery-full" aria-hidden="true"></i>Bilibili

</a>

<a href="https://github.com/LR787">

<span></span>

<span></span>

<span></span>

<span></span>

<i class="fa fa-github" aria-hidden="true"></i>Github

</a>





</div>

</div>

<div class="footer">

<p style="color: white">不备案。我任性。</p>

</div>



</body></html>

css

代码语言:javascript
复制
/*@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;

    flex-direction: column;
    background: #050801;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    height: 100vh;
}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
/*    flex-direction: column;*/

}

.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-color: white;*/

}
.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 60%;
}
.logo img{

    border-radius: 50%;
    height: 30%;
    -webkit-box-reflect:below 1px linear-gradient(transparent, #0003);
}
.logo img:hover{
    background: blue;
    box-shadow: 0 0 5px blue,
                0 0 25px blue,
                0 0 50px blue,
                0 0 200px blue;
}

/*.logo h1{
    text-shadow: 0 0 0.2em #fff,
                0 0 0.1em #fff;

    z-index:100;

}*/
.logo h1{

    z-index:100;
    animation-name: title;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function:2s;
-webkit-animation-timing-function:2s; /* Safari 和 Chrome */
    
}
@keyframes title {
    0%,10% {
        text-shadow: 0 0 0.2em #fff,
    }
    40% {
        text-shadow: 0 0 0.1em #fff,
                     0 0 0.1em #fff,
    }
    60% {
        text-shadow: 0 0 0.1em #fff,
                     0 0 0.1em #fff,
                     0 0 0.1em #fff;
        transform: translateY(30px);

    }
    75% {
        text-shadow: 0 0 0.1em gold,
                     0 0 0.1em gold,
                     0 0 0.1em #fff,
                     0 0 0.2em #fff;
    }
    80% {
                text-shadow: 0 0 0.1em #fff,
                     0 0 0.1em #fff,
                     0 0 0.1em #fff,
                     0 0 0.2em #fff,
                     0 0 0.3em #fff;
    }
}


.nav{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 70px;
    height: 30%
}
.nav a{

    position: relative;
    display: inline-block;
    padding: 25px 30px;
    margin: 40px 0;
    color: #03e9f4;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 4px;
    overflow: hidden;
    margin-right: 50px;
}
.nav a:hover{
    background: #03e9f4;
    color: #050801;
    box-shadow: 0 0 5px #03e9f4,
                0 0 25px #03e9f4,
                0 0 50px #03e9f4,
                0 0 200px #03e9f4;
     -webkit-box-reflect:below 1px linear-gradient(transparent, #0005);
}
.nav a:nth-child(1){
    filter: hue-rotate(310deg);
}
.nav a:nth-child(2){
    filter: hue-rotate(210deg);
}
.nav a:nth-child(3){
    filter: hue-rotate(110deg);
}
.nav a span{
    position: absolute;
    display: block;
}



.nav a span:nth-child(1){
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,transparent,#03e9f4);
    animation: animate1 1s linear infinite;
}
@keyframes animate1{
    0%{
        left: -100%;
    }
    50%,100%{
        left: 100%;
    }
}
.nav a span:nth-child(2){
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,transparent,#03e9f4);
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
}
@keyframes animate2{
    0%{
        top: -100%;
    }
    50%,100%{
        top: 100%;
    }
}
.nav a span:nth-child(3){
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg,transparent,#03e9f4);
    animation: animate3 1s linear infinite;
    animation-delay: 0.50s;
}
@keyframes animate3{
    0%{
        right: -100%;
    }
    50%,100%{
        right: 100%;
    }
}

.nav a span:nth-child(4){
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg,transparent,#03e9f4);
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
}
@keyframes animate4{
    0%{
        bottom: -100%;
    }
    50%,100%{
        bottom: 100%;
    }
}

@media screen and (max-width: 960px){
    .content{
        flex-direction: column;
    }
    .nav{
        flex-direction: column;
        /*margin-left: 70px;*/
        /*height: 60%*/
    }
    .logo{
        height: 30%
    }
}
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021年01月22日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • html
  • css
相关产品与服务
ICP备案
在中华人民共和国境内从事互联网信息服务的网站或APP主办者,应当依法履行备案手续。腾讯云为您提供高效便捷的 ICP 备案服务。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档