gsap+svg实现液态玻璃select图文列表下拉选择框代码

代码语言:html

所属分类:表单美化

代码描述:gsap+svg实现液态玻璃select图文列表下拉选择框代码

代码标签: gsap svg 液态 玻璃 select 图文 列表 下拉 选择框 代码

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

<!DOCTYPE html>
<html lang="en" >

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

    
  
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.8.1.css">
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--bgURL:url("https://picsum.photos/id/609/1500");
}

* {
     position: relative;
 }

html, body {
    font-family: Avenir, sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0px;
}

body {
    background: #000000;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #FFFFFF;
    overflow: hidden;
    padding: 0px;
}

  
#gsapBody {

    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;

    @supports (appearance: base-select) {
      
        select {
          
            &, &::picker(select) {
                appearance: base-select;
                position: relative;
            }
          
            display: block;
            position: relative;
            width: 440px;
            white-space: nowrap;
            padding: 15px;
            padding-left: 25px;
            padding-right: 25px;
            border-radius: 28px;
            background-color: #9992;
            backdrop-filter: blur(4px);
            border: solid 4px #FFF6!important;
            box-shadow: 0 0 1em 0 #0006;
            color: #FFFFFF;
            text-shadow: 0px 0px 6px #0009;
            font-size: 20px;
            cursor: pointer;
            overflow: hidden;
            outline: none;

            &:hover {
                background-color: #FFF4;
                color: #FFFFFF;
            }

            .optG {
                display: block;
                height: 100%;
                margin-right: 5px;
                overflow-y: auto;
            }

            option {
                position: relative;
                margin: 10px;
                padding: 0px;
                padding-right: 25px;
                border-radius: 18px;
                border: solid 1px #0001!important;
                background-color: #0000000F;
                color: #FFFFFF!important;
                text-shadow: 0px 0px 6px #0009;
                cursor: pointer;
                line-height: 30px;
                overflow-y: clip;
                outline: none;

                .icon {
                    display: inline-block;
                    width: 120px;
                    height: 120px;
                    margin-right: 15px;
                    border-top-left-radius: 18px;
                    border-bottom-left-radius: 18px;      
                    background-position: center center;
                    background-size: cover;
                    background-repeat: no-repeat;
                    filter: brightness(75%);
                    transition: all 0.5s ease;
                }

                &:before, &:after {
                    position: absolute;
                    right: 10px;
                    font-size: 16px;
                    line-height: normal;
                    white-space: normal;
                    font-weight: 200;
                    transition: all 0.5s ease;
                }
              .........完整代码请登录后点击上方下载按钮下载查看

网友评论0