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

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

純css實(shí)現(xiàn)彈跳,仿真重力碰撞效果 循環(huán)動(dòng)畫/ease-in

2023-07-08 21:48 作者:不務(wù)正業(yè)的寒舞  | 我要投稿

你還不如出手敲一遍的視頻

直接敲你的代碼連定位都是錯(cuò)的

相對(duì)定位里寫top,還有90%里把transleteY不寫會(huì)覆蓋掉。你這利用反向的缺點(diǎn)就是還沒碰到地面時(shí)球就開始變形了。我有點(diǎn)懷疑你沒手敲過,而是從某處copy出來的

```html

<div class="container">

? ? ? <div id="bounce">

? ? ? ? <div class="ball"></div>

? ? ? ? <div class="ground"></div>

? ? ? </div>

</div>

```


```less

*{margin:0;}

body{background-color: #000;}

.container{

? display: flow-root;

? #bounce {

? ? width: 300px;

? ? height: 300px;

? ? position: relative;

? ? margin:200px auto;

? ? .ball {

? ? ? width: 80px;

? ? ? height: 80px;

? ? ? border-radius: 50%;

? ? ? background-color: #fff;

? ? ? position: absolute;

? ? ? top: 0;

? ? ? left: 160px;

? ? ? animation: 1.5s falling ?infinite;

? ? ? @keyframes falling {

? ? ? ? 0%,100%{

? ? ? ? ? transform: translateY(0px) scale(1,1);

? ? ? ? }

? ? ? ? 50%{

? ? ? ? ? transform: translateY(216px) scale(1,1);

? ? ? ? }

? ? ? ? 51%{

? ? ? ? ? transform: translateY(214px) scale(0.8,1);

? ? ? ? }

? ? ? ? 52%{

? ? ? ? ? transform: translateY(202px) scale(1,0.8);

? ? ? ? }

? ? ? }

? ? }

? ? .ground {

? ? ? width: 400px;

? ? ? height: 20px;

? ? ? background-color: #fff;

? ? ? position: absolute;

? ? ? bottom: 0;

? ? }

? }

?

}

```


純css實(shí)現(xiàn)彈跳,仿真重力碰撞效果 循環(huán)動(dòng)畫/ease-in的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
边坝县| 永寿县| 林口县| 徐州市| 乌兰察布市| 大冶市| 铜鼓县| 咸宁市| 丰城市| 沈丘县| 扶沟县| 陆丰市| 武强县| 高邮市| 清原| 崇文区| 吉木乃县| 舞钢市| 特克斯县| 本溪| 高陵县| 新河县| 白河县| 涞水县| 平武县| 凉山| 吴江市| 新绛县| 临武县| 宣恩县| 大冶市| 军事| 宿松县| 桐乡市| 嵊州市| 金湖县| 乌鲁木齐市| 德昌县| 安龙县| 道真| 娱乐|