首页 >

使用纯css实现曲线运动.txt |css-5 mod4导弹

css收缩标签,css表格 列宽,引用在线css,css边框高度怎么调整,css 字体超出宽度显示省略,css去掉标签收尾空格,css-5 mod4导弹使用纯css实现曲线运动.txt |css-5 mod4导弹

.曲线 {

position: relative;

width: 100px;

height: 50px;

border-radius: 50px 50px 0 0;

border: 2px solid #ccc;

}

.曲线:before,

.曲线:after {

content: “”;

position: absolute;

width: 50px;

height: 100px;

border-radius: 0 0 50px 50px;

transform: rotateY(-45deg);

transform-origin: 0 100%;

}

.x {

width: 100px;

height: 100px;

font-size: 100px;

font-weight: bold;

margin-top: 20px;

}

.y {

width: 50px;

height: 100px;

font-size: 100px;

font-weight: bold;

margin-top: 20px;

}

.z {

width: 100px;

height: 100px;

font-size: 100px;

font-weight: bold;

margin-top: 20px;

}

document.addEventListener(“DOMContentLength”, function(event) {

const div=document.querySelector(“div.曲线”);

if (div) {

div.addEventListener(“click”, function() {

const x=div.offsetWidth / 2;

const y=div.offsetHeight / 2;

const z=div.offsetWidth / 2;

div.style.transform=”translate(” + x + “px,” + y + “px) translate(” + z + “px,” + -x + “px) rotateY(-45deg) scale(” + x + /2 + “,” + y + /2 + “)”;

});

}

});


使用纯css实现曲线运动.txt |css-5 mod4导弹
  • CSS烂脸精华 |css 下拉菜单 带图标
  • CSS烂脸精华 |css 下拉菜单 带图标 | CSS烂脸精华 |css 下拉菜单 带图标 ...

    使用纯css实现曲线运动.txt |css-5 mod4导弹
  • css两个class同时 |css翻转完成后返回
  • css两个class同时 |css翻转完成后返回 | css两个class同时 |css翻转完成后返回 ...

    使用纯css实现曲线运动.txt |css-5 mod4导弹
  • css3 下三角 |css文本框多个颜色
  • css3 下三角 |css文本框多个颜色 | css3 下三角 |css文本框多个颜色 ...