码迷,mamicode.com
首页 > 其他好文 > 详细

制作一个小导航页

时间:2020-10-18 10:02:46      阅读:17      评论:0      收藏:0      [点我收藏+]

标签:16px   ati   load   styles   inter   cursor   osi   fse   auto   

导航页预览图:

技术图片

导航页源码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="https://class.mgsy007.top/favicon.ico" type="image/x-icon">
	<link rel="shortcut icon" href="https://class.mgsy007.top/favicon.ico" type="image/x-icon">
    <title>导航页名称</title> 
    <style>
        *{
    margin: 0;
    padding: 0;
    font-family: "Open Sans ",sans-serif;

}
body{
    height: 100vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
    background-color: black;
    background-image: url("https://img.xjh.me/random_img.php?type=bg&ctype=nature&return=302"); 
    background-size: 1920px 1080px;
    background-repeat: no-repeat;
} 
    #jinrishici-sentence {
        color:white
    }
.btn{
    width: 160px;
    height: 60px;
    margin: 40px 0 ;
     background-image: linear-gradient(to right, #ff9569 0%, #e92758 100%);
    border:none;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer; 
    border-radius: 160px 160px;
 
}
.box{
    width: 100px;
    height: 120px;
    background-position: center;
    background-size: 100px 80px;
    background-repeat: no-repeat;
    margin: 0 auto;
}
.btn:hover{
    background-image: linear-gradient(-90deg, #29bdd9 0%, #276ace 100%);
    animation: rubberBand 1.25s; 
}
@keyframes rubberBand{
    0%{
        transform: scale3d(1,1,1);

    }    
    35%{
        transform: scale3d(1.25,.75,1);
        
    }
    45%{
        transform: scale3d(.75,1,1);
        
    }
    60%{
        transform: scale3d(1.2,.8,1);
        
    }
    75%{
        transform: scale3d(1.05,.95,1);
        
    }
    100%{
        transform: scale3d(1,1,1);
    }
}
 #svgBoxr{
        width:100%;
        margin:100px auto;
    }
    .text{
        font-size: 58px;
        font-weight: bold;
        text-transform: uppercase;
        fill: none;
        stroke-width: 2px;
        stroke-dasharray: 90 310;
        animation: stroke 6s infinite linear;
    }
    .text-1{
        stroke: #3498db;
        text-shadow: 0 0 5px #ff0000;
        animation-delay: -1.5s;
    }
    .text-2{
        stroke: #f39c12;
        text-shadow: 0 0 5px #ff0000;
        animation-delay: -3s;
    }
    .text-3{
        stroke: #e74c3c;
        text-shadow: 0 0 5px #e74c3c;
        animation-delay: -4.5s;
    }
    .text-4{
        stroke: #9b59b6;
        text-shadow: 0 0 5px #9b59b6;
        animation-delay: -6s;
    }
     
    @keyframes stroke {
        100% {
            stroke-dashoffset: 400;
        }
    }
    .svgText{
        width:600px;
        margin:0 auto;
    }
    .svgText h3{
        font-size:18px;
        color:#333;
        line-height:2;
    }
    .svgText p{
        font-size:16px;
        color:#888;
        line-height:2;
    }
    .svgText p a,.svgText p a:hover{
        color:#01a6fc;
        font-weight:600;
    }
    .svgText ul li{
        font-size:16px;
        color:#888;
        line-height:2;
    }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css"/>

</head>
<body>
    <div class="container">
            <svg width="100%" height="100">
                <text text-anchor="middle" x="50%" y="50%" class="text text-1">
                   导航
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-2">
                    导航
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-3">
                    导航
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-4">
                    导航
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-5">
                    导航
                </text>
            </svg>

                <a href="http://">
        	<button type="button"  class="btn" value="点我进入"><i class="fa fa-bolt" aria-hidden="true"></i>URL</button>
        </a>
        <a href="http://">
        	<button type="button" class="btn" value="点我进入"><i class="fa fa-firefox" aria-hidden="true"></i>URL</button>
        </a>
                <a href="http://">
        	<button type="button" class="btn" value="点我进入"><i class="fa fa-eercast" aria-hidden="true"></i>URL</button>
        </a>
                        <a href="http://">
        	<button type="button" class="btn" value="点我进入"><i class="fa fa-bolt" aria-hidden="true"></i><i class="fa fa-bolt" aria-hidden="true"></i>URL</button>
        </a>
        
                        <a href="http://">
        	<button type="button" class="btn" value="点我进入"><i class="fa fa-bolt" aria-hidden="true"></i>URL</button>
        </a>

        <br>
        
   <script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
      <span id="jinrishici-sentence" style="color: #AEDD81">诗人正在冥思苦想中。。。。</span><br>
        <span class="says"><a href="" style="color:#0CF;text-decrotion:none;">超链接</a></span>
        
    </div>
</body>
</html>

制作一个小导航页

标签:16px   ati   load   styles   inter   cursor   osi   fse   auto   

原文地址:https://www.cnblogs.com/catdog007/p/13832303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!