最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

HTML+CSS小項(xiàng)目:下雨的云。快速完成畢業(yè)設(shè)計(jì)(220728)

2022-07-28 22:36 作者:huawei13Pro  | 我要投稿

我的學(xué)習(xí)筆記:

下雨的云的效果圖


<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" >

<meta name="viewport">

<title>the rain cloud</title>

<style type="text/css">

body{

background-color:#212121;

display: flex;

justify-content: center;/*justify-content 屬性(水平)對(duì)齊彈性容器的項(xiàng)目,當(dāng)項(xiàng)目不占用主軸上所有可用空間時(shí)。*/

align-items: center;

width: 100%;

height: 90vh;?

}


.container{

position: relative;

width: 110px;

height: 30px;

background: #FFFFFF;

border-radius: 100px;

}


.container::before{

content: ' ';

position: absolute;

top: -20px;

left: 10px;

width: 30px;

height: 30px;

background: #FFFFFF;

border-radius: 50%;

box-shadow: 40px 0 0 20px #FFFFFF;

}


.rain{

position: relative;

display: flex;

z-index: 1;/*z-index 屬性設(shè)置元素的堆疊順序*/

}


.rain span{

position: relative;

width: 3px;

height: 3px;

background: #FFFFFF;

margin: 10px 2px;

border-radius: 50%;

animation: rain 5s linear infinite;

animation-duration: calc(15s/var(--speed));

transform-origin: bottom;


}


@keyframes rain{

0%{

transform:translateY(0);

}

70%{

transform: translateY(100px)scale(1);

}

100%{

transform: translateY(100px)scale(0);

}

}



</style>

</head>

<body>

<div>

<div>

<span style="--speed:11"></span>

<span style="--speed:17"></span>

<span style="--speed:13"></span>

<span style="--speed:18"></span>

<span style="--speed:15"></span>

<span style="--speed:16"></span>

<span style="--speed:13"></span>

<span style="--speed:18"></span>

<span style="--speed:19"></span>

<span style="--speed:20"></span>

<span style="--speed:15"></span>

<span style="--speed:16"></span>

<span style="--speed:15"></span>

<span style="--speed:18"></span>

<span style="--speed:14"></span>

<span style="--speed:20"></span>


</div>

</div>



</body>

</html>


HTML+CSS小項(xiàng)目:下雨的云??焖偻瓿僧厴I(yè)設(shè)計(jì)(220728)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
武平县| 武定县| 平南县| 扶沟县| 饶平县| 时尚| 贵州省| 普宁市| 巴林右旗| 阳山县| 玉田县| 余干县| 宁安市| 陆丰市| 彝良县| 梅州市| 手机| 荣昌县| 兴山县| 大渡口区| 商河县| 闻喜县| 泗洪县| 文山县| 广丰县| 灌阳县| 治县。| 新野县| 江西省| 惠安县| 临夏市| 肇州县| 双城市| 曲松县| 宿迁市| 靖宇县| 乌恰县| 桃江县| 南陵县| 平遥县| 隆林|