vue按钮变形成表单动画切换效果代码

代码语言:html

所属分类:表单美化

代码描述:vue按钮变形成表单动画切换效果代码

代码标签: 形成 表单 动画 切换 效果

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

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

<head>

    <meta charset="UTF-8">


    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,900" rel="stylesheet">



    <style>
@charset "UTF-8";
        .container {
            background-image: linear-gradient(-128deg, rgba(255, 181, 32, 0.93) 3%, rgba(239, 39, 153, 0.93) 88%, rgba(237, 18, 171, 0.93) 100%);
            display: flex;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
        }

        .add-product {
            transition: all 0.3s ease;
            background-color: #FFC145;
            height: 144px;
            width: 144px;
            border-radius: 72px;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.07);
            cursor: pointer;
        }
        .add-product.open {
            background-color: #FAFAFA;
            padding: 18px 32px;
            border-radius: 5px;
            width: 420px;
            height: 398px;
            cursor: default;
        }
        .add-product.open form {
            opacity: 1;
            transition: opacity 0.1s ease;
            transition-delay: 0.3s;
            height: auto;
        }
        .add-product .button-copy {
            text-align: center;
            line-height: 144px;
            text-transform: uppercase;
            font-weight: bold;
            color: #f7f7f7;
        }
        .add-product form {
            transition: none;
            opacity: 0;
            height: 0;
            overflow: hidden;
        }
        .add-product .cancel {
            font-size: 12px;
     .........完整代码请登录后点击上方下载按钮下载查看

网友评论0