tailwind实现主题切换的图片悬浮转换个人信息卡片效果代码

代码语言:html

所属分类:悬停

代码描述:tailwind实现主题切换的图片悬浮转换个人信息卡片效果代码

代码标签: tailwind 主题 切换 图片 悬浮 转换 个人 信息 卡片

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

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

<head>
  <meta charset="UTF-8">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.3.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
  

  
</head>


  <body class="bg-gradient-to-r from-violet-300 via-amber-200 to-violet-300   text-black flex flex-col  justify-center  items-center min-h-screen px-4 
            [&_*]:transition-all 
            [&_*]:ease-in-out 
            [&_*]:duration-500
            [&>section:hover]:!duration-700
            [&>section:hover>div>*]:!duration-700
            [&>section:hover>div>*]:!translate-y-0
        ">

  <!-- theme toggle radio -->
  <input type="checkbox" id="theme" class="sr-only peer" checked>

  <section class="group max-w-md size-24 rounded-3xl bg-white p-2 cursor-pointer shadow-xl origin.........完整代码请登录后点击上方下载按钮下载查看

网友评论0