tailwind实现性别单选图标效果代码
代码语言:html
所属分类:布局界面
代码描述:tailwind实现性别单选图标效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.3.js"></script>
</head>
<body style="margin:100px;">
<div
class="flex flex-col items-start gap-4 overflow-hidden rounded-md p-6 shadow-sm shadow-[#00000050]"
>
<span
class="text-center font-mono text-base font-black uppercase text-neutral-600"
>Please select your gender</span
>
<div class="flex items-center gap-4">
<div class="relative flex h-[50px] w-[50px] items-center justify-center">
<input
type="radio"
id="radio"
name="gender"
value="male"
class="peer z-10 h-full w-full cursor-pointer opacity-0"
/>
<div
class="absolute h-full w-full rounded-full bg-blue-100 p-4 shadow-sm shadow-[#00000050] ring-blue-400 duration-300 peer-checked:scale-110 peer-checked:ring-2"
></div>
<div
class="absolute -z-10 h-full w-full scale-0 rounded-full bg-blue-200 duration-500 peer-checked:scale-[500%]"
></div>
<svg
xm.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0