第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

蘑菇街線性漸變的動(dòng)畫如何實(shí)現(xiàn)

蘑菇街線性漸變的動(dòng)畫如何實(shí)現(xiàn)

ITMISS 2018-10-15 13:18:40
最近在模仿蘑菇街做練習(xí)這種線性漸變的動(dòng)畫如何實(shí)現(xiàn)???用過keyframe,transition,都很生硬,也許是我用的不對(duì)?
查看完整描述

1 回答

?
嗶嗶one

TA貢獻(xiàn)1854條經(jīng)驗(yàn) 獲得超8個(gè)贊

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>css3漸變動(dòng)畫</title>

    <style>

        *{

            margin: 0;

            padding: 0;

        }

        .hover{

            position: relative;

            display: block;

            float: left;

            margin-right: 20px;

            width: 200px;

            height: 120px;

            z-index: 1;

        }

        .hover:after{

            position: absolute;

            display: block;

            content: '';

            width: 100%;

            height: 100%;

            top: 0;

            left: 0;

            -webkit-transition: opacity 0.5s ease-out;

            -moz-transition: opacity 0.5s ease-out;

            -ms-transition: opacity 0.5s ease-out;

            transition: opacity 0.5s ease-out;

            opacity: 0;

            z-index: 2;

        }

        .hover:hover:after{

            opacity: 1;

        }

        .hover-a{

            background: #00dafe\9;

            background: -webkit-linear-gradient(left, #00dafe, #3381ff);

            background: -moz-linear-gradient(left, #00dafe, #3381ff);

            background: -ms-linear-gradient(left, #00dafe, #3381ff);

            background: linear-gradient(left, #00dafe, #3381ff);

        }

        .hover-a:after{

            background: -webkit-linear-gradient(right, #00dafe, #3381ff);

            background: -moz-linear-gradient(right, #00dafe, #3381ff);

            background: -ms-linear-gradient(right, #00dafe, #3381ff);

            background: linear-gradient(right, #00dafe, #3381ff);

        }

        .hover-b{

            background: #ea73ff\9;

            background: -webkit-linear-gradient(left, #ea73ff, #a34eff);

            background: -moz-linear-gradient(left, #ea73ff, #a34eff);

            background: -ms-linear-gradient(left, #ea73ff, #a34eff);

            background: linear-gradient(left, #ea73ff, #a34eff);

        }

        .hover-b:after{

            background: -webkit-linear-gradient(right, #ea73ff, #a34eff);

            background: -moz-linear-gradient(right, #ea73ff, #a34eff);

            background: -ms-linear-gradient(right, #ea73ff, #a34eff);

            background: linear-gradient(right, #ea73ff, #a34eff);

        }

    </style>

</head>

<body>

<a href="" class="hover hover-a"></a>

<a href="" class="hover hover-b"></a>

</body>

</html>


查看完整回答
反對(duì) 回復(fù) 2018-11-01
  • 1 回答
  • 0 關(guān)注
  • 455 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)