鼠标悬停旋转的图标按钮特效

鼠标悬停旋转的图标按钮特效

添加时间:2021-02-22 13:32:06
站长推荐丨赞助论坛,可获取海量资源终身免费下载权限奥!
举报 举报
收藏
预览
附件 附件
  • 模板类型模板类型:图标导航
  • 模板颜色模板颜色:初级
  • 下载积分下载积分:28 米粒
  • 下载权限下载权限:

    赞助会员

一款鼠标悬停旋转的图标按钮特效,鼠标悬停于任意一个图标按钮上面时,均有一个按钮高亮并顺时针旋转的特效,适用于任何页面的图标导航特效,整体效果还是挺不错的哦,喜欢的童鞋请收下吧。
鼠标悬停旋转的图标按钮特效
分类:导航菜单 > 图标导航 难易:初级

页面的head部分,先对接google的图标字体库,代码如下:

<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">

接着设置好页面元素的特效样式,由于代码内容较多,这里仅贴出部分代码:

* {
	font-family: 'Microsoft YaHei','Lantinghei SC','Open Sans',Arial,'Hiragino Sans GB','STHeiti','WenQuanYi Micro Hei','SimSun',sans-serif;
}

body {
	font-size: 1rem;
	background-color: #ebebeb;
	padding: 20px;
	text-align: center;
}

h1 {
	font-weight: 100;
	color: #777;
}

.main-wrapper {
	border-radius: 4px;
	background-color: white;
	padding: 20px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
	position: relative;
}

i.material-icons {
	font-size: 1.5rem;
	color: white;
	position: relative;
	border-radius: 50%;
	padding: 5px;
	margin: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.3s ease;
}

i.material-icons:after {
	content: "";
	width: 100%;
	height: 100%;
	border: solid 2px;
	transform: scale(0.8);
	position: absolute;
	top: -2px;
	left: -2px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

i.material-icons:hover:after {
	transform: scale(1);
	box-shadow: 10px 0 20px rgba(0, 0, 0, 0.19), 6px 0 6px rgba(0, 0, 0, 0.23);
}

i.material-icons:nth-of-type(4) {
	background-color: #88b999;
}

i.material-icons:nth-of-type(4):hover {
	color: #88b999;
}

i.material-icons:nth-of-type(4):after {
	border-color: #88b999;
}

i.material-icons:nth-of-type(5) {
	background-color: #88b2b9;
}

i.material-icons:nth-of-type(5):hover {
	color: #88b2b9;
}

i.material-icons:nth-of-type(5):after {
	border-color: #88b2b9;
}

页面的body部分,一个div容器里面放入了多个i标签来显示图标,代码如下:

<h1>鼠标悬停旋转的图标按钮特效</h1>
<div class="main-wrapper">
	<i class="material-icons">attach_file</i>
	<i class="material-icons">settings</i>
	<i class="material-icons">refresh</i>
	<i class="material-icons">search</i>
	<i class="material-icons">explore</i>
	<i class="material-icons">public</i>
	<i class="material-icons">autorenew</i>
	<i class="material-icons">add</i>
</div>
相关内容推荐
资源求助发帖
查看更多发帖

*

回帖描述:

*

链接类型:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
热点内容推荐
标题:鼠标悬停旋转的图标按钮特效

*

描述:
平均回复时间:3-10分钟
规则介绍:悬赏寻求论坛网友分享资源,站点对分享内容的准确性,合法性,版权等没有足够的监管能力。如果您发现资源不正确,无法使用,不符合法律法律等情况,您可以直接举报资源。站长将尽快核实您的举报,并根据情况,采取封号,退换米粒等处理。

*

回帖描述:

*

链接类型:

*

阅读权限:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
  • 背景波浪
  • 背景波浪
  • 波浪
  • 波浪
客服
在线咨询
周一 至 周日 9:00 ~ 22:00
QQ:1326974360
微信:juyoubuluo6688
客服热线
18205485173
工作日 9:00 ~ 18:00
微信扫码咨询
客户服务
欢迎咨询服务
咨询量较多时,请耐心等待
社群

关注公众号

获取更多资讯

扫码进群(QQ)

与更多大牛交流沟通

0.172594s