gsap弹性动画radio选择效果

代码语言:html

所属分类:表单美化

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
@import url("https://fonts.googleapis.com/css?family=Ubuntu:500&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #FF8A9F;
}

.radio__card {
  position: relative;
  background-color: white;
  width: 350px;
  height: 200px;
  border-radius: 20px;
  padding: 30px;
  color: #554548;
}
.radio__card-options {
  margin-top: 20px;
}
.radio__card-options-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.radio__card-options-item-header {
  margin-left: 25px;
}

.credits {
  color: #EBE9E9;
  position: absolute;
  right: 25px;
  bottom: 23px;
}

.circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #FFE8EC;
}
.circle__active {
  background-color: #FF8A9F;
  z-index: 1;
}
.circle__inactive {
  cursor: pointer;
}
</style>

</head>
<body translate="no">
<div class="container">
<div class="container__elements">
<div class="radio__card">
<h2>Choose Your Side</h2>
<di.........完整代码请登录后点击上方下载按钮下载查看

网友评论0