css播放暂停按钮点击效果代码

代码语言:html

所属分类:其他

代码描述:css播放暂停按钮点击效果代码

代码标签: css 播放 暂停 按钮 点击

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

<!DOCTYPE html>
<html lang="en" >
<head>
 
<meta charset="UTF-8">
<style>
    body {
        margin: 0;
        padding: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #e6e6e6;
        --clip: #e6e6e6;
}

.content {
        width: 38vmin;
        height: 15vmin;
        background: #2b6ea1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10vmin;
        box-shadow: 0 1px 0 1px #0002, 0 1vmin 0 0 #1f5176, 0 1.5vmin 0 0 #1f5176, 0 1.5vmin 0 1px #0004, 0 -1px 0 1px #0002, 0 calc(1.5vmin + 1px) 5px #fff6;
        transition: all 0.5s ease 0s;
}

.content:hover {
        transform: translateY(5px);
        transition: all 0.5s ease 0s;
        box-shadow:
                0 1px 0 1px #0002,
                0 calc(1vmin - 5px) 0 0 #2c4050,
                0 calc(1.5vmin - 5px) 0 0 #2c4050,
                0 calc(1.5vmin - 5px) 0 1px #0004,
                0 -1px 0 1px #0002,
                0 calc(1.5vmin - 4px) 5px #fff6;
}


.letter-p {
        border-left: 1vmin solid var(--clip);
        height: 6vmin;
        border-radius: 0.5vmin;
        /* margin-left: -1vmin; */
        transition: all 0.5s ease 0s;
}
.letter-p:before {
        content: "";
        border: 1vmin solid var(--clip);
        border-color: var(--clip) var(--clip) var(--clip) #fff0;
        width: 3vmin;
        height: 2vmin;
        margin-top: 0vmin;
        margin-left: -1vmin;
        position: absolute;
        border-radius: 10% 50% 50% 0% / 10% 50% 50% 10%;
}



.letter-l {
        border-left: 1vmin solid var(--clip);
        border-bottom: 1vmin solid var(--clip);
        height: 4.5vmin;
        width: 3vmin;
        margin-top: 0.5vmin;
        margin-left: 5.5vmin;
        margin-right: 2.25vmin;
        border-radius: 0 0 0 0.5vmin;
        position: relative;
        transition: all 0.5s ease 0s;
}
.letter-l:before, .letter-l:after {
        content: "";
        background: var(--clip);
        width: 1vmin;
        height: 1vmin;
        position: absolute;
        border-radius: 100%;
        left: -0.95vmin;
        margin-top: -0.65vmin;
}

.letter-l:after {
        left: 2.5vmin;
        margin-top: 4.45vmi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0