js+css实现操作成功反馈提示消息弹出层代码

代码语言:html

所属分类:弹出层

代码描述:js+css实现操作成功反馈提示消息弹出层代码

代码标签: js css 操作 成功 反馈 提示 消息 弹出层 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
    margin: 0px;
    font-family: "Poppins", serif;
    background: #EFEFEE;
}
.container{
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0px auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.update_box{
    position: relative;
    width: 250px;
    display: flex;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    margin: 0px auto;
    background: #000;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0px 8px 10.5px #979796;
    transition: all .3s linear;
}
.update_box.done{
    background: #3BB22B;
    width: 260px;
}
.update_box.active{
    transform: translateY(100px);
    opacity: 0;
}
.update_box.done .loading{
    display: none;
}
.loading{
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}
.update_box.done .profile_box{
    display: flex;
}
.loader{
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    border-left: 2px solid #fff;
    border-radius: 50%;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin-right: 20px;
    animation: loader 1500ms linear infinite;
}
.update_box.active .loader{
    animation: unset;
}
h2{
    position: relative;
    margin: 0px;
    text-align: center;
    font-size: 22px;
}
@keyframes loader{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
.profile_box{
    max-width: 100%;
    width: 100%;
    display: none;
    align-items: center;
}
.tick{
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    margin-right: 10px;
}
.tick::after,.tick::before{
    position: absolute;
    content: "";
    wi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0