css分享悬浮按钮弹出子菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:css分享悬浮按钮弹出子菜单效果代码

代码标签: css 分享 子菜单 弹出

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

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

<head>
    <meta charset="UTF-8">

    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<style>
    .c-share {
	position:relative;
	width:3.4375em;
	height:3.4375em;
}
.c-share__input {
	display:none;
}
.c-share__input:checked ~ .c-share__toggler .c-share__icon {
	transition:0s;
	width:0;
	height:0;
	color:#639eff;
}
.c-share__input:checked ~ .c-share__toggler .c-share__icon::before {
	transform:rotate(-45deg);
}
.c-share__input:checked ~ .c-share__toggler .c-share__icon::after {
	transform:rotate(45deg);
}
.c-share__input:checked ~ .c-share_options {
	width:11.0625em;
	height:12.5em;
	border-radius:0.3125em;
}
.c-share__input:checked ~ .c-share_options::before,.c-share__input:checked ~ .c-share_options li {
	transition:0.3s 0.15s;
	opacity:1;
	transform:translateY(0);
}
.c-share__toggler,.c-share_options {
	position:absolute;
	right:0;
	width:inherit;
	height:inherit;
	border-radius:50%;
	background-color:#f2f2f2;
}
.c-share__toggler {
	cursor:pointer;
	z-index:1;
	display:flex;
	justify-content:center;
	align-items:center;
}
.c-share__icon {
	position:relative;
	left:-0.3125em;
	width:0.5em;
	height:0.5em;
	border-radius:50%;
	color:#029dfc;
	background-color:currentColor;
	box-shadow:0.625em -0.625em,0.625em 0.625em;
	transition:0.1s 0.05s;
}
.c-share__icon::before,.c-share__icon::after {
	content:"";
	position:absolute;
	width:1em;
	height:0.125em;
	background-color:currentColor;
	transition.........完整代码请登录后点击上方下载按钮下载查看

网友评论0