gsap+svg实现炫酷复古未来主义单选按钮点击动画效果代码

代码语言:html

所属分类:表单美化

代码描述:gsap+svg实现炫酷复古未来主义单选按钮点击动画效果代码

代码标签: gsap svg 炫酷 复古 未来主义 单选 按钮 点击 动画

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

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

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

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@1,500&display=swap");
html,
body {
  height: 100%;
}

body {
  background-color: #3d3e4a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.radio-btn-group {
  margin: 10px;
}

input[type=radio] {
  opacity: 0;
  position: absolute;
}

input[type=radio]:checked + label::before {
  box-shadow: 0 0 20px 2px #0763f7;
}
input[type=radio]:checked + label span {
  color: #9c092b;
}

input[type=radio]:focus + label::before {
  box-shadow: 0 0 20px 2px #0763f7;
}

label {
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: "IBM Plex Mono", serif;
  font-weight: 500;
  font-style: italic;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  height: 50px;
  padding: 0 30px;
  position: relative;
}
label::before {
  background-color: #24252c;
  background-image: repeating-linear-gradient(0deg, #181a29, #181a29 1px, #202436 1.........完整代码请登录后点击上方下载按钮下载查看

网友评论0