成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

CSS3transition動(dòng)畫

1.transition動(dòng)畫

站在用戶的角度思考問題,與客戶深入溝通,找到海曙網(wǎng)站設(shè)計(jì)與海曙網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:做網(wǎng)站、成都做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、主機(jī)域名、虛擬主機(jī)、企業(yè)郵箱。業(yè)務(wù)覆蓋海曙地區(qū)。

(1)transition-property 設(shè)置過渡的屬性,比如:width height background-color

(2)transition-duration 設(shè)置過渡的時(shí)間,比如:1s 500ms

(3)transition-timing-function 設(shè)置過渡的運(yùn)動(dòng)方式,常用有l(wèi)inear(勻速)| ease(緩沖運(yùn)動(dòng))

(4)transition-delay 設(shè)置動(dòng)畫的延遲

(5)transition:property duration timing-function delay; 同時(shí)設(shè)置

<head>
<meta charset="utf-8">
<title>transition動(dòng)畫</title>
<style type="text/css">

.box{
    width: 100px;
    height: 100px;
    background-color: yellow;
    transition: all 500ms ease,background-color 2s ease;
}
.box:hover{
    width: 500px;
    height: 500px;
    background-color: red;
}
</style>

</head>

<body>

<div class="box"></div>

</body>

CSS3 transition動(dòng)畫

例子二:圖片說明文字

<head>
<meta charset="utf-8">
<title>圖片</title>
<style type="text/css">

.box{
    width: 320px;
    height: 405px;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
}
.text{
    width: 320px;
    height: 100px;
    position: absolute;
    top: 405px;
    background-color: rgba(124,119,119,0.30);
    transition: all 500ms ease;
}
.box:hover .text{
    position: absolute;
    top: 305px;
}
</style>

</head>

<body>
<div class="box">
<img src="images/3_02.png" alt="星空">
<div class="text">

            <h4>夜空中最亮的星</h4>
            <p>我在思考人生</p>
        </div>

</div>

</body>

CSS3 transition動(dòng)畫

例子三:夏目

<head>
<meta charset="utf-8">
<title>joke</title>
<style type="text/css">

@keyframes joke{
    from{
        left: 0px;
    }
    to{
        left: -2136px;      /*圖片寬度*/
    }
}
.box{
    width: 534px;
    height: 300px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
}
.box img{
    position: absolute;
    animation: joke 1s steps(4) infinite;
}
</style>

</head>

<body>

<div class="box">
    <img src="images/xia.png" alt="夏目友人帳">
</div>

</body>

CSS3 transition動(dòng)畫

網(wǎng)頁名稱:CSS3transition動(dòng)畫
當(dāng)前地址:http://jinyejixie.com/article2/jjphoc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供、響應(yīng)式網(wǎng)站、搜索引擎優(yōu)化、云服務(wù)器、自適應(yīng)網(wǎng)站商城網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)
买车| 山东省| 涡阳县| 军事| 乌兰察布市| 万宁市| 西和县| 娄烦县| 阿拉善右旗| 宜昌市| 牡丹江市| 田东县| 浏阳市| 乌审旗| 英吉沙县| 高清| 青龙| 湘潭市| 盐山县| 名山县| 梨树县| 大足县| 元氏县| 金寨县| 和平县| 咸阳市| 朝阳县| 即墨市| 曲阜市| 合水县| 尼木县| 盈江县| 平昌县| 荆州市| 宁阳县| 绥棱县| 平泉县| 门源| 宣武区| 云林县| 新丰县|