基于tachyons的按钮hover动画效果

代码语言:html

所属分类:表单美化

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>Button Demo</title>
    <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600,700&display=swap" rel="stylesheet">

    <link rel='stylesheet' href='http://repo.bfw.wiki/bfwrepo/css/tachyons.css'>
    <style>
        body {
            font-family: "Source Code Pro", monospace;
            background: #fff;
            color: #4a4a4e;
        }

        .icon::before {
            display: inline-block;
            font-style: normal;
            font-variant: normal;
            text-rendering: auto;
            -webkit-font-smoothing: antialiased;
        }

        .button {
            padding: 1rem 3.5rem 1rem 1.5rem;
            transition: .2s all;
            cursor: pointer;
            box-shadow: -12px -9px 0px white, 0px 0px 0px rgba(255, 255, 255, 0);
        }
        .button p {
            padding: 0;
            margin: 0;
        }
        .button:before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            content: "\f061";
            position: absolute;
            right: 24px;
            transition: .2s all;
            opacity: 1;
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0