1 Star 0 Fork 81

GuMorming/前端页面效果合集

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
360度旋转按钮010 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
木兰君 提交于 2022-09-24 21:32 . init
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.banner {
width: 234px;
height: 34px;
border-radius: 34px;
position: absolute;
top: 400px;
left: 200px;
}
.banner a {
display: inline-block;
width: 30px;
height: 30px;
line-height: 30px;
border-radius: 50%;
border: 2px solid #a18cd1;
position: absolute;
left: 0px;
top: 0px;
background: #fbc2eb;
color: #fff;
text-align: center;
text-decoration: none;
cursor: pointer;
z-index: 2;
}
.banner a:hover+span {
transform: rotate(360deg);
opacity: 1;
}
.banner span {
display: inline-block;
width: auto;
padding: 0 20px;
height: 34px;
line-height: 34px;
background: #a18cd1;
border-radius: 34px;
text-align: center;
position: absolute;
color: #fff;
text-indent: 25px;
opacity: 0;
transform-origin: 8% center;
transition: all 1s;
}
</style>
</head>
<body>
<div class="banner">
<a href="#"></a>
<span>这是我的个人博客</span>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gumorming/front_page_effect_collection.git
git@gitee.com:gumorming/front_page_effect_collection.git
gumorming
front_page_effect_collection
前端页面效果合集
master

搜索帮助