moli
2022-05-01 44ac8e05c00b65bbe25121588cb9e7ed78cffdf7
前端弹窗
5个文件已添加
1386 ■■■■■ 已修改文件
前端/弹出提示窗口/btn.css 122 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
前端/弹出提示窗口/index.html 359 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
前端/弹出提示窗口/modal.css 118 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
前端/弹出提示窗口/style.css 661 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
前端/弹出提示窗口/tt.css 126 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ǰ¶Ë/µ¯³öÌáʾ´°¿Ú/btn.css
New file
@@ -0,0 +1,122 @@
/*GRADIENTS*/
.b-confirm{
  transition: all .5s;
  background: linear-gradient(45deg, rgba(0, 190, 57, 0.671) 0%, rgba(0, 192, 144, 0.692) 100%);
}
.b-confirm:hover{
  background: linear-gradient(45deg, rgb(0, 190, 57) 0%, rgb(0, 192, 144) 100%);
}
/*RED*/
.b-cancel{
  background: linear-gradient(45deg, rgba(255, 69, 69, 0.678) 0%, rgba(255, 39, 39, 0.521) 100%);
}
.b-cancel:hover {
  background: linear-gradient(45deg, rgb(255, 0, 0) 0%, rgb(255, 51, 0) 100%);
}
/*Orange*/
.b-warning{
  background: linear-gradient(45deg, rgba(255, 208, 0, 0.658) 0%,rgba(255, 94, 0, 0.767) 0%, rgba(255, 208, 0, 0.781) 100%);
}
.b-warning:hover {
  background: linear-gradient(45deg, rgb(255, 208, 0) 0%,rgb(255, 94, 0) 0%, rgb(255, 208, 0) 100%);
}
/*BLUE*/
.b-info{
  background: linear-gradient(45deg, rgba(0, 204, 255, 0.658) 0%,rgba(0, 4, 255, 0.767) 0%, rgba(0, 183, 255, 0.781) 100%);
}
.b-info:hover {
  background: linear-gradient(45deg, rgb(0, 204, 255) 0%,rgb(0, 4, 255) 0%, rgb(0, 183, 255) 100%);
}
.b-disabel:hover {
  background: linear-gradient(45deg, rgba(90, 90, 90, 0.568) 0%, rgba(59, 59, 59, 0.699) 100%);
}
/*END GRADIENTS*/
/*BASE BUTTON*/
.button {
  display: inline-block;
  position: relative;
  border-radius: 3px;
  text-decoration: none;
  padding: .2rem 1.3rem;
  margin: .2rem;
  font-size: .8rem;
  font-weight: bold;
  transition: all .5s;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 0px #ffffffaa;
  cursor: pointer;
}
.button:hover {
  text-shadow: 0px 0px 0px rgba(255, 255, 255, 1);
}
.button:hover:after {
  left: 100%;
  top: 100%;
  bottom: 100%;
  right: 100%;
}
.button:before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: -1;
  border-radius: 5px;
  transition: all .5s;
}
.button:after {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  right: 2px;
  z-index: -1;
  border-radius: 5px;
  transition: all .5s;
}
.button2 {
  display: inline-block;
  font-size: 2em;
  margin: .5em;
  padding: .5em;
  border-radius: 5px;
  transition: all .5s;
  filter: hue-rotate(0deg);
  color: #FFF;
  text-decoration: none;
}
/*END BASE BUTTON*/
/*ROTATE*/
.rot-360-noscoop:hover {
  filter: hue-rotate(360deg);
  transform: rotate(360deg);
}
.rot-135:hover {
  filter: hue-rotate(135deg);
}
.rot-90:hover {
  filter: hue-rotate(90deg);
}
/*END ROTATE*/
ǰ¶Ë/µ¯³öÌáʾ´°¿Ú/index.html
New file
@@ -0,0 +1,359 @@
<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="./btn.css">
    <link rel="stylesheet" href="./modal.css">
    <link rel="stylesheet" href="./style.css">
</head>
<body>
    <button class="button b-confirm" onclick="createMessage()">
        å¼¹çª—
    </button>
    <script>
        function createMessage() {
            show({
                type: 'success',
                content: '确认提交?',
                btns: [{
                        type: 'success',
                        text: '提交',
                        callback: function () {
                            console.log("提交成功");
                        }
                    },
                    {
                        type: 'cancel',
                        text: '取消',
                        callback: function () {
                            console.log("取消提交");
                        }
                    },
                ],
                callback: function () {
                    console.log("关闭窗口");
                }
            });
        }
        /**
         * å¼¹çª—
         * @param {弹窗参数} options
         */
        let show = function (options) {
            //options = {type(Emun,弹窗类型),content(String,显示的内容),btns(按钮{type|Emun,text|String,callback|Function})),callback(Function æŒ‰é’®å›žè°ƒæ‰§è¡Œäº‹ä»¶ï¼Œå¯ç©º)}
                //type å¼¹çª—类型,Emun success|info|warning|error|disabel
                //content æ˜¾ç¤ºçš„内容
                //btns:{type|String,btns|Array,callback|Function}
                    //btns.type:Emun æŒ‰é’®ç±»åž‹ success|confirm|info|warning|cancel|error|fail|disabel
                    //btns.text:String æŒ‰é’®æ˜¾ç¤ºçš„æ–‡æœ¬
                    //btns.callback:Function æŒ‰é’®å›žè°ƒæ‰§è¡Œäº‹ä»¶ï¼Œå¯ç©º
                //callback å…³é—­çª—口后执行的事件
            //初始化参数->创建DOM->渲染DOM->绑定按钮事件->调用按钮回调事件->关闭窗口->调用关闭窗口后的事件
            let body = document.body;
            let windowId = new Date().getTime() + '' + Math.round(Math.random() * 1000);
            let headClass = "my_modal__header";
            if (options.type == "success" ||
                options.type == "info" ||
                options.type == "warning" ||
                options.type == "error" ||
                options.type == "disabel") {
                headClass = "my_modal__header_" + options.type;
            }
            if (!!!options.title) {
                options.title = "提示";
            }
            let btnFun = function (userFun, e) {
                if (!!userFun) {
                    userFun();
                }
                e.target.parentNode.parentNode.className = 'my_modal slide-out-bck-top';
                setTimeout(() => {
                    e.target.parentNode.parentNode.parentNode.remove();
                }, 330);
                if (!!options.callback) {
                    options.callback(e.target.innerText);
                }
            }
            let closeFun = function (e) {
                e.target.parentNode.parentNode.parentNode.parentNode.className = 'my_modal slide-out-bck-top';
                setTimeout(() => {
                    e.target.parentNode.parentNode.parentNode.parentNode.parentNode.remove();
                }, 330);
                if (!!options.callback) {
                    options.callback("my_modal_close_btn_" + windowId);
                }
            }
            let btnStr = '';
            //按钮处理
            if (options.btns != undefined && options.btns != null && options.btns.length > 0) {
                for (let key in options.btns) {
                    options.btns[key].bindId = new Date().getTime() + '' + Math.round(Math.random() * 1000);
                    if (options.btns[key].type == "confirm" ||
                        options.btns[key].type == "info" ||
                        options.btns[key].type == "warning" ||
                        options.btns[key].type == "cancel" ||
                        options.btns[key].type == "disabel") {
                        btnStr += '<div id="box_btn_id_' + options.btns[key].bindId + '"  class="button b-' +
                            options.btns[key].type + '">' + options.btns[key].text + '</div>';
                    } else {
                        if (options.btns[key].type == "success") {
                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId + '"  id="box_btn_id_' +
                                options.btns[key].bindId + '" class="button b-confirm">' + options.btns[key].text +
                                '</div>';
                        } else if (options.btns[key].type == "fail") {
                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId +
                                '"  class="button b-cancel">' + options.btns[key].text + '</div>';
                        } else if (options.btns[key].type == "error") {
                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId +
                                '"  class="button b-cancel">' + options.btns[key].text + '</div>';
                        } else {
                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId +
                                '"  class="button b-info">' + options.btns[key].text + '</div>';
                        }
                    }
                }
            }
            //按钮处理 end
            //构建元素
            let modal_back = document.createElement('div');
            modal_back.className = 'my_modal_back';
            let modal = document.createElement('div');
            modal.className = 'my_modal slide-in-elliptic-top-fwd';
            let modal__header = document.createElement('div');
            modal__header.className = headClass;
            let modal__header_title = document.createElement('div');
            modal__header_title.className = 'my_modal__header_title';
            modal__header_title.innerText = options.title;
            modal__header.appendChild(modal__header_title);
            let modal__header_close = document.createElement('div');
            modal__header_close.className = 'my_modal__header_close';
            let item_item3 = document.createElement('div');
            item_item3.className = 'item item3';
            item_item3.id = 'my_modal_close_btn_' + windowId;
            let close_icon = document.createElement('div');
            close_icon.className = 'close icon';
            let close_icon_i = document.createElement('i');
            close_icon.appendChild(close_icon_i);
            item_item3.appendChild(close_icon);
            modal__header_close.appendChild(item_item3);
            modal__header.appendChild(modal__header_close);
            let modal__Content = document.createElement('div');
            modal__Content.className = 'my_modal__Content';
            modal__Content.innerText = options.content;
            let modal__footer = document.createElement('div');
            modal__footer.className = 'my_modal__footer';
            modal__footer.innerHTML = btnStr;
            modal.appendChild(modal__header);
            modal.appendChild(modal__Content);
            modal.appendChild(modal__footer);
            modal_back.appendChild(modal);
            body.appendChild(modal_back);
            //构建元素 end
            //绑定回调事件
            if (options.btns != undefined && options.btns != null && options.btns.length > 0) {
                document.getElementById('my_modal_close_btn_' + windowId)
                    .addEventListener('click', function (e) {
                        closeFun(e);
                    });
                for (let key in options.btns) {
                    let dom = document.getElementById('box_btn_id_' + options.btns[key].bindId);
                    dom.addEventListener('click', function (e) {
                        btnFun(options.btns[key].callback, e)
                    });
                }
            }
            //绑定回调事件end
        }
        /**
         * å†…部方法,参数处理
         * @param {Json Object} param é»˜è®¤å‚æ•°
         * @param {*} title æ ‡é¢˜
         * @param {*} btns æŒ‰é’®åˆ—表
         * @param {*} callback å›žè°ƒå‡½æ•°
         * @returns å¤„理后的参数
         */
        let setParam = function (param, title, btns, callback) {
            if (!!title) {
                param.title = title;
            } else {}
            if (btns !== undefined && btns !== null) {
                param.btns = btns;
            } else if (btns === null) {
                param.btns = [];
            } else {}
            if (!!callback) {
                param.callback = callback;
            }
            return param;
        }
        /**
         * å¼¹å‡ºä¸€ä¸ªæç¤ºæˆåŠŸçš„æç¤ºçª—å£
         * @param {String} content *提示内容
         * @param {String} title æ ‡é¢˜ï¼Œé»˜è®¤æ ‡é¢˜ä¸ºæç¤º
         * @param {Array} btns æŒ‰é’®åˆ—表,需要置空传null或空数组,不传递时会默认提供一个确定按钮
         * @param {Function} callback å…³é—­å›žè°ƒï¼Œæ— å¯ç”¨å‚æ•°
         */
        let success = function (content, title, btns, callback) {
            let param = {
                type: 'success',
                title: '提示',
                content: content,
                btns: [{
                    type: 'success',
                    text: 'ç¡®  å®š',
                    callback: function () {
                        console.log('callback success');
                    }
                }],
                callback: function () {
                }
            };
            param = setParam(param, title, btns, callback);
            show(param);
        }
        /**
         * å¼¹å‡ºä¸€ä¸ªæç¤ºå¤±è´¥çš„æç¤ºçª—口
         * @param {String} content *提示内容
         * @param {String} title æ ‡é¢˜ï¼Œé»˜è®¤æ ‡é¢˜ä¸ºæç¤º
         * @param {Array} btns æŒ‰é’®åˆ—表,需要置空传null或空数组,不传递时会默认提供一个确定按钮
         * @param {Function} callback å…³é—­å›žè°ƒï¼Œæ— å¯ç”¨å‚æ•°
         */
        let error = function (content, title, btns, callback) {
            let param = {
                type: 'error',
                title: '错误',
                content: content,
                btns: [{
                    type: 'success',
                    text: 'ç¡®  å®š',
                    callback: function () {
                        console.log('callback success');
                    }
                }],
                callback: function () {
                }
            };
            param = setParam(param, title, btns, callback);
            show(param);
        }
        /**
         * å¼¹å‡ºä¸€ä¸ªè­¦å‘Šçš„æç¤ºçª—口
         * @param {String} content *提示内容
         * @param {String} title æ ‡é¢˜ï¼Œé»˜è®¤æ ‡é¢˜ä¸ºæç¤º
         * @param {Array} btns æŒ‰é’®åˆ—表,需要置空传null或空数组,不传递时会默认提供一个确定按钮
         * @param {Function} callback å…³é—­å›žè°ƒï¼Œæ— å¯ç”¨å‚æ•°
         */
        let warning = function (content, title, btns, callback) {
            let param = {
                type: 'warning',
                title: '警告',
                content: content,
                btns: [{
                    type: 'success',
                    text: 'ç¡®  å®š',
                    callback: function () {
                        console.log('callback success');
                    }
                }],
                callback: function () {
                }
            };
            param = setParam(param, title, btns, callback);
            show(param);
        }
        /**
         * å¼¹å‡ºä¸€ä¸ªè¯¢é—®çª—口
         * @param {String} content *提示内容
         * @param {String} title æ ‡é¢˜ï¼Œé»˜è®¤æ ‡é¢˜ä¸ºæç¤º
         * @param {Array} btns æŒ‰é’®åˆ—表,需要置空传null或空数组,不传递时会默认提供一个确定按钮、一个取消按钮
         * @param {Function} callback å…³é—­å›žè°ƒï¼Œæ— å¯ç”¨å‚æ•°
         */
        let confirm = function (content, title, btns, callback) {
            let param = {
                type: 'warning',
                title: '警告',
                content: content,
                btns: [{
                        type: 'success',
                        text: 'ç¡®  å®š',
                        callback: function () {
                            console.log('callback success');
                        }
                    },
                    {
                        type: 'cancel',
                        text: '取  æ¶ˆ',
                        callback: function () {
                            console.log('callback success');
                        }
                    }
                ],
                callback: function () {
                }
            };
            param = setParam(param, title, btns, callback);
            show(param);
        }
        let out = {
            show,
            success,
            error,
            warning,
            confirm
        }
    </script>
</body>
</html>
ǰ¶Ë/µ¯³öÌáʾ´°¿Ú/modal.css
New file
@@ -0,0 +1,118 @@
.my_modal_back {
    background-color: #00000033;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999990;
}
.my_modal {
    /* Border */
    border: 1px solid rgba(104, 104, 104, 0.397);
    border-radius: 10px;
    width: 600px;
    max-height: 400px;
    position: absolute;
    top: calc(100vh - 50% - 300px);
    left: calc(100vw - 50% - 300px);
    background: #efefef;
    z-index: 99999991;
}
.my_modal__header {
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    height: 28px;
    line-height: 28px;
    box-shadow: 0px 1px #a1a1a1;
    z-index: 99999992;
    background: linear-gradient(90deg, rgb(0, 162, 255) 0%, rgba(0, 195, 255, 0.377) 100%);
}
.my_modal__header_success {
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    height: 28px;
    line-height: 28px;
    box-shadow: 0px 1px #a1a1a1;
    z-index: 99999992;
    background: linear-gradient(90deg, rgba(98, 202, 0, 0.836) 0%, rgba(0, 255, 149, 0.377) 100%);
}
.my_modal__header_info {
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    height: 28px;
    line-height: 28px;
    box-shadow: 0px 1px #a1a1a1;
    z-index: 99999992;
    background: linear-gradient(90deg, rgb(0, 162, 255) 0%, rgba(0, 195, 255, 0.377) 100%);
}
.my_modal__header_warning {
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    height: 28px;
    line-height: 28px;
    box-shadow: 0px 1px #a1a1a1;
    z-index: 99999992;
    background: linear-gradient(90deg, rgba(230, 149, 0, 0.836) 0%, rgba(208, 255, 0, 0.377) 100%);
}
.my_modal__header_error {
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    height: 28px;
    line-height: 28px;
    box-shadow: 0px 1px #a1a1a1;
    z-index: 99999992;
    background: linear-gradient(90deg, rgba(230, 0, 0, 0.836) 0%, rgba(255, 0, 0, 0.377) 100%);
}
.my_modal__header_disabel {
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    height: 28px;
    line-height: 28px;
    box-shadow: 0px 1px #a1a1a1;
    z-index: 99999992;
    background: linear-gradient(90deg, rgba(80, 80, 80, 0.836) 0%, rgba(163, 163, 163, 0.377) 100%);
}
.my_modal__header_title {
    font-weight: bold;
    font-size: .8rem;
    font-family: '微软雅黑';
    justify-content: space-between;
    padding-left: 5px;
    color: #ffffff;
    z-index: 99999993;
}
.my_modal__Content {
    display: flex;
    min-height: 50px;
    padding-top: 20px;
    padding-left: 30px;
    font-family: '楷体';
    z-index: 99999993;
}
.my_modal__footer {
    display: flex;
    /* Push the buttons to the right */
    justify-content: flex-end;
    /* Border */
    /* border-top: 1px solid rgba(185, 185, 185); */
    padding: 10px 20px;
    z-index: 99999993;
}
ǰ¶Ë/µ¯³öÌáʾ´°¿Ú/style.css
New file
@@ -0,0 +1,661 @@
  .container {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(6, 1fr);
    position: relative;
  }
  .item {
    /* border: 1px solid var(--gray); */
    box-sizing: border-box;
    display: inline-block;
    height: 15px;
    padding: 5px;
    width: 15px;
    padding-right: 28px;
    padding-top:1px;
  }
  .icon {
    color: var(--white);
    position: absolute;
  }
  .icon:before, .icon:after {
    content: '';
    position: absolute;
  }
  i {
    position: absolute;
  }
  i:before, i:after {
    background-color: currentcolor;
    content: '';
    position: absolute;
  }
  /* Search Icon ... Start */
  .search.icon {
    border: 2px solid currentcolor;
    border-radius: 50%;
  /*   color: var(--purple); */
    height: 12px;
    margin-top: 1px;
    margin-left: 2px;
    transform: rotate(-45deg);
    width: 12px;
  }
  .search.icon:before {
    background-color: currentcolor;
    height: 10px;
    left: 5px;
    top: 12px;
    width: 2px;
  }
  /* Search Icon ... End */
  /* Menu Icon ... Start */
  .menu.icon {
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid currentcolor;
  /*   color: var(--green); */
    margin-top: 10px;
    transition: transform .5s ease-out 0s;
    width: 24px;
    will-change: transform;
  }
  .item:hover .menu.icon {
    transform: rotate(90deg);
  }
  .menu.icon:before {
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid currentcolor;
    top: -8px;
    width: 24px;
  }
  .menu.icon:after {
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid currentcolor;
    top: 6px;
    width: 24px;
  }
  /* Menu Icon ... End */
  /* Close Icon ... Start */
  .close.icon, .close.icon:before {
    border-left: 1px solid currentcolor;
    height: 20px;
  }
  .close.icon {
  /*   color: var(--blue); */
    margin-left: 12px;
    margin-top: -2px;
    transform: rotate(45deg);
    transition: transform .2s ease-in-out 0s;
    will-change: transform, opacity;
  }
  .close.icon:before {
    left: -1px;
    transform: rotate(90deg);
  }
  .close.icon:after {
    background-color: transparent;
    /* border: 1.5px solid currentcolor; */
    border-radius: 50%;
    height: 26px;
    left: -15px;
    opacity: 0;
    top: -4px;
    transition: opacity .5s ease-in 0s;
    width: 26px;
  }
  .item:hover .close.icon {
    transform: rotate(135deg);
  }
  .item:hover .close.icon:after {
    opacity: 1;
  }
  /* Close Icon ... End */
  /* Messanger Icon ... Start */
  .message.icon {
    border: 1px solid currentcolor;
  /*   color: var(--orange); */
    height: 16px;
    margin-top: -2px;
    margin-left: -2px;
    transition: transform .3s ease-out 0s;
    width: 24px;
    will-change: transform;
  }
  .item:hover .message.icon {
    transform: rotate(10deg);
  }
  .message.icon:before {
    background-color: var(--black);
    border-bottom: 1px solid currentcolor;
    border-right: 1px solid currentcolor;
    height: 7px;
    left: 5px;
    transform: rotate(45deg);
    top: 13px;
    width: 7px;
  }
  .message.icon i, .message.icon i:before, .message.icon i:after {
    background-color: currentcolor;
    border-radius: 50%;
    height: 3px;
    width: 3px;
  }
  .item:hover .message.icon i {
    animation: shrink 1.6s ease 0s infinite;
  }
  .message.icon i {
    margin-left: 4px;
    margin-top: 6px;
  }
  .message.icon i:before {
    left: 6px;
  }
  .message.icon i:after {
    left: 12px;
  }
  @keyframes shrink {
    0%, 100% { transform: scale(1) }
    50% { transform: scale(.7) }
  }
  /* Message Icon ... End */
  /* User Icon ... Start */
  .user.icon {
    border: 1px solid currentcolor;
    border-radius: 50px 50px 10px 10px;
  /*   color: var(--yellow); */
    height: 12px;
    margin-left: -1px;
    margin-top: 10px;
    width: 24px;
  }
  .user.icon:before {
    background-color: var(--black);
    border: 1px solid currentcolor;
    border-radius: 50%;
    height: 16px;
    left: 3px;
    top: -15px;
    width: 16px;
  }
  /* User Icon ... End */
  /* Back Arrow ... Start */
  .back.icon {
    border-bottom: 1px solid currentcolor;
    border-left: none;
    border-right: none;
    border-top: none;
  /*   color: var(--pink); */
    height: 1px;
    margin-left: 1px;
    margin-top: 7px;
    width: 24px;
  }
  .back.icon:before {
    border-bottom: 1px solid currentcolor;
    border-left: none;
    border-right: none;
    border-top: none;
    height: 1px;
    left: -2px;
    top: -5px;
    transform: rotate(-45deg);
    width: 14px;
  }
  .back.icon:after {
    border-bottom: 1px solid currentcolor;
    border-left: none;
    border-right: none;
    border-top: none;
    height: 1px;
    left: -2px;
    top: 5px;
    transform: rotate(45deg);
    width: 14px;
  }
  /* Back Arrow ... End */
  /* Forward Arrow ... Start */
  .forward.icon {
    border-bottom: 1px solid currentcolor;
    border-left: none;
    border-right: none;
    border-top: none;
  /*   color: var(--pink); */
    height: 1px;
    margin-right: 2px;
    margin-top: 7px;
    width: 24px;
  }
  .forward.icon:before {
    border-bottom: 1px solid currentcolor;
    border-left: none;
    border-right: none;
    border-top: none;
    height: 1px;
    right: -2px;
    top: -5px;
    transform: rotate(45deg);
    width: 14px;
  }
  .forward.icon:after {
    border-bottom: 1px solid currentcolor;
    border-left: none;
    border-right: none;
    border-top: none;
    height: 1px;
    right: -2px;
    top: 5px;
    transform: rotate(-45deg);
    width: 14px;
  }
  /* Forward Arrow ... End */
  /* House Icon ... Start */
  .house.icon {
    border-bottom: none;
    border-left: 1px solid currentcolor;
    border-right: none;
    border-top: 1px solid currentcolor;
  /*   color: var(--blue); */
    height: 21px;
    margin-left: 2px;
    margin-top: -3px;
    transform: rotate(45deg);
    width: 21px;
  }
  .house.icon:before {
    border-bottom: 1px solid currentcolor;
    border-left: 1px solid currentcolor;
    border-right: 1px solid currentcolor;
    border-top: none;
    height: 14px;
    left: 1.5px;
    top: 5px;
    transform: rotate(-45deg);
    width: 20px;
  }
  /* House Icon ... End */
  /* Play Icon */
  .play.icon {
    border: 1px solid currentcolor;
    border-radius: 50%;
  /*   color: var(--red); */
    height: 30px;
    margin-left: -5px;
    margin-top: -7px;
    width: 30px;
    will-change: opacity, transform;
  }
  .item:hover .play.icon:before {
    animation: ringDissolve 1s ease-in-out 0s infinite;
  }
  .play.icon:before {
    border: 1px solid currentcolor;
    border-radius: 50%;
    height: 36px;
    left: -4px;
    opacity: 0;
    top: -4px;
    width: 36px;
  }
  @keyframes ringDissolve {
    0%, 100% {
      height: 36px;
      opacity: 0;
      transform: translate( 0px, 0px);
      width: 36px
    }
    49% {
      height: 37px;
      opacity: 1;
      transform: translate( -.5px, -.5px);
      width: 37px
    }
    50% {
      height: 36px;
      opacity: 1;
      transform: translate( 0px, 0px);
      width: 36px
    }
  }
  /* .item:hover .play.icon:after {
    animation: outerRingDissolve 1s ease-in-out 0s infinite;
  } */
  .play.icon:after {
    border: 1px solid currentcolor;
    border-radius: 50%;
    height: 40px;
    left: -6px;
    opacity: 0;
    top: -6px;
    width: 40px;
  }
  @keyframes outerRingDissolve {
    0%, 100% {
      height: 40px;
      opacity: 0;
      transform: translate( 0px, 0px);
      width: 40px
    }
    49% {
      height: 41px;
      opacity: 1;
      transform: translate( -.5px, -.5px);
      width: 41px
    }
    50% {
      height: 40px;
      opacity: 1;
      transform: translate( 0px, 0px);
      width: 40px
    }
  }
  .play.icon i {
    background-color: currentcolor;
    border-left: 1px solid currentcolor;
    height: 13px;
    margin-left: 10px;
    margin-top: 8px;
    width: 1px;
  }
  .play.icon i:before, .play.icon i:after {
    height: 1px;
    width: 15px;
  }
  .play.icon i:before {
    border-bottom: 1px solid currentcolor;
    bottom: 2px;
    left: -2px;
    transform: rotate(-30deg);
  }
  .play.icon i:after {
    border-top: 1px solid currentcolor;
    left: -2px;
    top: 2px;
    transform: rotate(30deg);
  }
  /* Play Icon ... End */
  @media (max-width: 600px) {
    .container {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 320px) {
    .container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  .close.icon{
      color:#555;
  }
  .slide-in-elliptic-top-fwd {
    -webkit-animation: slide-in-elliptic-top-fwd 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: slide-in-elliptic-top-fwd 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
/* ----------------------------------------------
 * Generated by Animista on 2022-5-1 17:12:11
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info.
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */
/**
 * ----------------------------------------
 * animation slide-in-elliptic-top-fwd
 * ----------------------------------------
 */
 @-webkit-keyframes slide-in-elliptic-top-fwd {
    0% {
      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
              transform: translateY(-600px) rotateX(-30deg) scale(0);
      -webkit-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) rotateX(0) scale(1);
              transform: translateY(0) rotateX(0) scale(1);
      -webkit-transform-origin: 50% 1400px;
              transform-origin: 50% 1400px;
      opacity: 1;
    }
  }
  @keyframes slide-in-elliptic-top-fwd {
    0% {
      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
              transform: translateY(-600px) rotateX(-30deg) scale(0);
      -webkit-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) rotateX(0) scale(1);
              transform: translateY(0) rotateX(0) scale(1);
      -webkit-transform-origin: 50% 1400px;
              transform-origin: 50% 1400px;
      opacity: 1;
    }
  }
  .slide-out-elliptic-top-bck {
    -webkit-animation: slide-out-elliptic-top-bck 0.4s ease-in both;
            animation: slide-out-elliptic-top-bck 0.4s ease-in both;
  }
@-webkit-keyframes slide-out-elliptic-top-bck {
  0% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
            transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% 1400px;
            transform-origin: 50% 1400px;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
            transform: translateY(-600px) rotateX(-30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 1;
  }
}
@keyframes slide-out-elliptic-top-bck {
  0% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
            transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% 1400px;
            transform-origin: 50% 1400px;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
            transform: translateY(-600px) rotateX(-30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 1;
  }
}
.roll-out-left {
    -webkit-animation: roll-out-left 0.4s ease-in both;
            animation: roll-out-left 0.4s ease-in both;
}
@-webkit-keyframes roll-out-left {
  0% {
    -webkit-transform: translateX(0) rotate(0deg);
            transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px) rotate(-540deg);
            transform: translateX(-1000px) rotate(-540deg);
    opacity: 0;
  }
}
@keyframes roll-out-left {
  0% {
    -webkit-transform: translateX(0) rotate(0deg);
            transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px) rotate(-540deg);
            transform: translateX(-1000px) rotate(-540deg);
    opacity: 0;
  }
}
.fade-out {
    -webkit-animation: fade-out 1s ease-out both;
            animation: fade-out 1s ease-out both;
}
 @-webkit-keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.slide-out-bck-center {
    -webkit-animation: slide-out-bck-center 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
            animation: slide-out-bck-center 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
 @-webkit-keyframes slide-out-bck-center {
  0% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(-1100px);
            transform: translateZ(-1100px);
    opacity: 0;
  }
}
@keyframes slide-out-bck-center {
  0% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(-1100px);
            transform: translateZ(-1100px);
    opacity: 0;
  }
}
.slide-out-bck-top {
    -webkit-animation: slide-out-bck-top 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
            animation: slide-out-bck-top 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
 @-webkit-keyframes slide-out-bck-top {
  0% {
    -webkit-transform: translateZ(1) translateY(0);
            transform: translateZ(1) translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(-1100px) translateY(-1000px);
            transform: translateZ(-1100px) translateY(-1000px);
    opacity: 0;
  }
}
@keyframes slide-out-bck-top {
  0% {
    -webkit-transform: translateZ(1) translateY(0);
            transform: translateZ(1) translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(-1100px) translateY(-1000px);
            transform: translateZ(-1100px) translateY(-1000px);
    opacity: 0;
  }
}
ǰ¶Ë/µ¯³öÌáʾ´°¿Ú/tt.css
New file
@@ -0,0 +1,126 @@
.item {
    /* border: 1px solid var(--gray); */
    box-sizing: border-box;
    display: inline-block;
    height: 15px;
    padding: 5px;
    width: 15px;
    padding-right: 28px;
    padding-top: 1px;
}
.item:hover .menu.icon {
    transform: rotate(90deg);
}
.item:hover .close.icon {
    transform: rotate(135deg);
}
.item:hover .close.icon:after {
    opacity: 1;
}
.item:hover .message.icon {
    transform: rotate(10deg);
}
.item:hover .message.icon i {
    animation: shrink 1.6s ease 0s infinite;
}
.item:hover .play.icon:before {
    animation: ringDissolve 1s ease-in-out 0s infinite;
}
.close.icon,
.close.icon:before {
    border-left: 1px solid currentcolor;
    height: 20px;
}
.close.icon {
    /*   color: var(--blue); */
    margin-left: 12px;
    margin-top: -2px;
    transform: rotate(45deg);
    transition: transform .2s ease-in-out 0s;
    will-change: transform, opacity;
}
.close.icon:after {
    background-color: transparent;
    /* border: 1.5px solid currentcolor; */
    border-radius: 50%;
    height: 26px;
    left: -15px;
    opacity: 0;
    top: -4px;
    transition: opacity .5s ease-in 0s;
    width: 26px;
}
.close.icon {
    color: #555;
}
.slide-in-elliptic-top-fwd {
    -webkit-animation: slide-in-elliptic-top-fwd 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: slide-in-elliptic-top-fwd 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
/* ----------------------------------------------
 * Generated by Animista on 2022-5-1 17:12:11
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info.
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */
/**
 * ----------------------------------------
 * animation slide-in-elliptic-top-fwd
 * ----------------------------------------
 */
 @-webkit-keyframes slide-in-elliptic-top-fwd {
    0% {
      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
              transform: translateY(-600px) rotateX(-30deg) scale(0);
      -webkit-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) rotateX(0) scale(1);
              transform: translateY(0) rotateX(0) scale(1);
      -webkit-transform-origin: 50% 1400px;
              transform-origin: 50% 1400px;
      opacity: 1;
    }
  }
  @keyframes slide-in-elliptic-top-fwd {
    0% {
      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
              transform: translateY(-600px) rotateX(-30deg) scale(0);
      -webkit-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) rotateX(0) scale(1);
              transform: translateY(0) rotateX(0) scale(1);
      -webkit-transform-origin: 50% 1400px;
              transform-origin: 50% 1400px;
      opacity: 1;
    }
  }