css实现15款Noa - Css3按钮悬浮动画效果代码

代码语言:html

所属分类:悬停

代码描述:css实现15款Noa - Css3按钮悬浮动画效果代码

代码标签: css 按钮 悬浮 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
   
<meta charset="UTF-8">
   
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
 
   
<style>
        /*NOA BUTTON STYLES CSS*/
   
   
    /*=====================
    01. NOA BUTTON STYLE 1 CSS
    02. NOA BUTTON STYLE 2 CSS
    03. NOA BUTTON STYLE 3 CSS
    04. NOA BUTTON STYLE 4 CSS
    05. NOA BUTTON STYLE 5 CSS
    06. NOA BUTTON STYLE 6 CSS
    07. NOA BUTTON STYLE 7 CSS
    08. NOA BUTTON STYLE 8 CSS
    09. NOA BUTTON STYLE 9 CSS
    10. NOA BUTTON STYLE 10 CSS
    11. NOA BUTTON STYLE 11 CSS
    12. NOA BUTTON STYLE 12 CSS
    13. NOA BUTTON STYLE 13 CSS
    14. NOA BUTTON STYLE 14 CSS
    15. NOA BUTTON STYLE 15 CSS
    =======================*/
   
   
    /*=====================
    01. NOA BUTTON STYLE 1 CSS
    =======================*/
   
    .btn-style-one {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        background-color: #0060ff;
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-one span {
        position: relative;
        z-index: 1;
        color: inherit;
    }
    .btn-style-one::before {
        position: absolute;
        content: '';
        left: 92%;
        top: 0px;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 1;
        background-color: #132144;
        transition: all 0.4s;
        transform: skewX(-25deg);
    }
    .btn-style-one:hover::before {
        left: 0%;
        transform: scale(1, 1);
    }
    .btn-style-one:hover,
    .btn-style-one:focus,
    .btn-style-one:visited {
        text-decoration: none;
        outline: none;
        color: #fff;
    }
   
    /*=====================
    02. NOA BUTTON STYLE 2 CSS
    =======================*/
   
    .btn-style-two {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        border: 0;
        background-color: #0060ff;
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-two span {
        position: relative;
        z-index: 2;
        color: inherit;
    }
    .btn-style-two::before,
    .btn-style-two::after {
        position: absolute;
        content: '';
        top: 0px;
        width: 5px;
        height: 100%;
        z-index: 1;
        opacity: 1;
        background-color: #132144;
        transition: all 0.4s;
    }
    .btn-style-two::before {
        left: 0px;
    }
    .btn-style-two::after {
        right: 0px;
    }
    .btn-style-two:hover::before,
    .btn-style-two:hover::after {
        width: 50%;
    }
    .btn-style-two:hover,
    .btn-style-two:focus,
    .btn-style-two:visited {
        text-decoration: none;
        outline: none;
        color: #fff;
    }
   
    /*=====================
    03. NOA BUTTON STYLE 3 CSS
    =======================*/
   
    .btn-style-three {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        background-color: #0060ff;
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-three span {
        position: relative;
        z-index: 2;
        color: inherit;
    }
    .btn-style-three::before,
    .btn-style-three::after {
        position: absolute;
        content: '';
        top: 0px;
        bottom: 0px;
        transition: all 600ms ease;
    }
    .btn-style-three::before {
        left: 0;
        right: -50px;
        border-bottom: 55px solid #132144;
        border-right: 30px solid transparent;
        transform: translateX(-100%);
    }
    .btn-style-three:hover::before {
        transform: translateX(-40%);
    }
    .btn-style-three::after {
        right: 0;
        left: -50px;
        border-left: 30px solid transparent;
        border-bottom: 55px solid #132144;
        transform: translateX(100%);
    }
    .btn-style-three:hover::after {
        transform: translateX(40%);
    }
    .btn-style-three:hover,
    .btn-style-three:focus,
    .btn-style-three:visited {
        text-decoration: none;
        outline: none;
        color: #fff;
    }
   
    /*=====================
    04. NOA BUTTON STYLE 4 CSS
    =======================*/
   
    .btn-style-four {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        background-color: #0060ff;
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-four span {
        position: relative;
        z-index: 2;
        color: inherit;
    }
    .btn-style-four::before {
        position: absolute;
        content: '';
        top: 0px;
        bottom: 0px;
        left: 0px;
        right: -50px;
        border-bottom: 55px solid #132144;
        border-right: 30px solid transparent;
        transition: all 600ms ease;
        transform: translateX(-100%);
    }
    .btn-style-four:hover::before {
        transform: translateX(-30%);
    }
    .btn-style-four:hover,
    .btn-style-four:focus,
    .btn-style-four:visited {
        text-decoration: none;
        outline: none;
        color: #fff;
    }
   
    /*=====================
    05. NOA BUTTON STYLE 5 CSS
    =======================*/
   
    .btn-style-five {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        background-image: linear-gradient(to left, #162338 0%, #0060ff 100%);
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-five span {
        position: relative;
        z-index: 2;
        color: inherit;
    }
    .btn-style-five::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0;
        background-image: linear-gradient(to right, #162338 0%, #0060ff 100%);
        transition: all 0.4s;
        transform: scale(1, 0.2);
    }
    .btn-style-five:hover::before {
        opacity: 1;
        transform: scale(1, 1);
    }
    .btn-style-five:hover,
    .btn-style-five:focus,
    .btn-style-five:visited {
        text-decoration: none;
        outline: none;
        color: #fff;
    }
   
    /*=====================
    06. NOA BUTTON STYLE 6 CSS
    =======================*/
   
    .btn-style-six {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        background-image: linear-gradient(to bottom, #162338 0%, #0060ff 100%);
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-six span {
        position: relative;
        z-index: 2;
        color: inherit;
    }
    .btn-style-six::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0;
        background-image: linear-gradient(to top, #162338 0%, #0060ff 100%);
        transition: all 0.4s;
        transform: scale(0.2, 1);
    }
    .btn-style-six:hover::before {
        opacity: 1;
        transform: scale(1, 1);
    }
    .btn-style-six:hover,
    .btn-style-six:focus,
    .btn-style-six:visited {
        text-decoration: none;
        outline: none;
        color: #fff;
    }
   
    /*=====================
    07. NOA BUTTON STYLE 7 CSS
    =======================*/
   
    .btn-style-seven {
        position: relative;
        display: inline-block;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 11px 30px;
        border-radius: 3px;
        overflow: hidden;
        text-transform: capitalize;
        text-decoration: none;
        background-image: linear-gradient(to left, #162338 0%, #0060ff 100%);
        color: #ffffff;
        transition: all .3s ease;
    }
    .btn-style-seven span {
        position: relative;
        z-index: 2;
        color: inherit;
    }
    .btn.........完整代码请登录后点击上方下载按钮下载查看

网友评论0