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

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

css實現(xiàn)彈簧效果(延時 轉(zhuǎn)換 立體 ),你學會了嗎

2023-06-08 23:18 作者:柒-刻  | 我要投稿


課代表來交作業(yè)了

  • 代碼展示:

<!DOCTYPE html>

<html lang="en">


<head>

? ? <meta charset="UTF-8">

? ? <meta http-equiv="X-UA-Compatible" content="IE=edge">

? ? <meta name="viewport" content="width=device-width, initial-scale=1.0">

? ? <title>魔力彈簧</title>

? ? <style>

? ? ? ? html,

? ? ? ? body {

? ? ? ? ? ? height: 100%;

? ? ? ? ? ? margin: 0;

? ? ? ? ? ? padding: 0;

? ? ? ? }


? ? ? ? .item {

? ? ? ? ? ? position: absolute;

? ? ? ? ? ? background-color: transparent;

? ? ? ? ? ? width: calc(var(--i)*25px);

? ? ? ? ? ? aspect-ratio: 1;

? ? ? ? ? ? border: 10px solid rgb(0, 200, 255);

? ? ? ? ? ? border-radius: 50%;

? ? ? ? ? ? transform: rotateX(70deg);

? ? ? ? ? ? animation: move 3s ease-in-out calc(var(--i)*0.08s) infinite;

? ? ? ? ? ? box-shadow: 0px 0px 15px rgb(124, 124, 124), inset 0px 0px 15px rgb(124, 124, 124);

? ? ? ? }


? ? ? ? /* 定制動畫關鍵幀 */

? ? ? ? @keyframes move {


? ? ? ? ? ? 0%,

? ? ? ? ? ? 100% {

? ? ? ? ? ? ? ? transform: rotateX(70deg)translateY(0px);

? ? ? ? ? ? ? ? filter: hue-rotate(0deg);

? ? ? ? ? ? }


? ? ? ? ? ? 50% {

? ? ? ? ? ? ? ? transform: rotateX(70deg)translateY(-35vw);

? ? ? ? ? ? ? ? filter: hue-rotate(180deg);

? ? ? ? ? ? }

? ? ? ? }


? ? ? ? /* 子元素垂直水平居中 */

? ? ? ? .container {

? ? ? ? ? ? width: 100vw;

? ? ? ? ? ? height: 100vh;

? ? ? ? ? ? position: relative;

? ? ? ? ? ? display: flex;

? ? ? ? ? ? justify-content: center;

? ? ? ? ? ? align-items: center;

? ? ? ? }

? ? </style>

</head>


<body>

? ? <div class="container">

? ? ? ? <div class="item" style="--i:0;"></div>

? ? ? ? <div class="item" style="--i:1;"></div>

? ? ? ? <div class="item" style="--i:2;"></div>

? ? ? ? <div class="item" style="--i:3;"></div>

? ? ? ? <div class="item" style="--i:4;"></div>

? ? ? ? <div class="item" style="--i:5;"></div>

? ? ? ? <div class="item" style="--i:6;"></div>

? ? ? ? <div class="item" style="--i:7;"></div>

? ? ? ? <div class="item" style="--i:8;"></div>

? ? ? ? <div class="item" style="--i:9;"></div>

? ? ? ? <div class="item" style="--i:10;"></div>

? ? </div>


</body>

<script>


</script>


  • </html>

css實現(xiàn)彈簧效果(延時 轉(zhuǎn)換 立體 ),你學會了嗎的評論 (共 條)

分享到微博請遵守國家法律
珲春市| 长沙市| 新巴尔虎右旗| 平舆县| 盐津县| 肃宁县| 屯门区| 延川县| 怀柔区| 马关县| 东乡县| 黎城县| 峨眉山市| 共和县| 舞钢市| 耒阳市| 肇庆市| 玉溪市| 马关县| 浮山县| 乐山市| 阳春市| 宁都县| 和田县| 德化县| 祥云县| 黄平县| 黄石市| 岳阳县| 广德县| 灵川县| 安义县| 石渠县| 湖北省| 安福县| 莎车县| 偃师市| 清苑县| 青州市| 密云县| 东光县|