Html 防止CSS“;“反弹”;开:悬停
我需要一些帮助以使过渡更平滑: 我已经做了几个小时的调整和调整,但是我调整得越多,我就破坏得越多-_- 欢迎提出任何建议或建议 htmlHtml 防止CSS“;“反弹”;开:悬停,html,css,animation,css-animations,Html,Css,Animation,Css Animations,我需要一些帮助以使过渡更平滑: 我已经做了几个小时的调整和调整,但是我调整得越多,我就破坏得越多-_- 欢迎提出任何建议或建议 html 我不知道你到底想要什么,但我会尽力猜出来的 如果您将其添加到ccs中: #menu-toggle + label span { vertical-align: top; } 这是你想要的吗?你很好。如果我能帮忙,我会很高兴的。 @charset "UTF-8"; @import '//maxcdn.bootstrapcdn.com/font-aweso
我不知道你到底想要什么,但我会尽力猜出来的 如果您将其添加到ccs中:
#menu-toggle + label span {
vertical-align: top;
}
这是你想要的吗?你很好。如果我能帮忙,我会很高兴的。
@charset "UTF-8";
@import '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css';
body {
background: #3F7CAC;
text-align: center;
font-family: helvetica, arial, sans-serif;
padding: 50px;
}
h1 {
font-weight: 100;
text-transform: uppercase;
color: white;
font-size: 20px;
letter-spacing: 3px;
opacity: 0.1;
}
.container {
border: solid 10px rgba(255, 255, 255, 0.1);
display: block;
height: 400px;
width: 400px;
margin: 0 auto;
}
#menu-toggle {
display: none;
}
#menu-toggle + label {
margin-top: 50px;
display: inline-block;
text-align: center;
color: white;
padding: 0;
opacity: 0.7;
-webkit-transition: all 0.15s ease-out 0s;
-moz-transition: all 0.15s ease-out 0s;
transition: all 0.15s ease-out 0s;
}
#menu-toggle + label:hover {
cursor: pointer;
opacity: 1;
}
#menu-toggle + label span {
height: 10px;
width: 10px;
display: inline-block;
background: white;
border-radius: 50%;
}
#menu-toggle + label span + span {
margin-left: 5px;
}
#menu-toggle + label span a {
display: none;
text-align: center;
text-decoration: none;
color: #3F7CAC;
-webkit-transition: all 0.15s ease-out 0s;
-moz-transition: all 0.15s ease-out 0s;
transition: all 0.15s ease-out 0s;
}
#menu-toggle + label p {
text-transform: uppercase;
letter-spacing: 2px;
margin: 5px;
font-weight: 200;
font-size: 10px;
}
#menu-toggle:checked + label {
opacity: 1;
}
#menu-toggle:checked + label span {
height: 50px;
width: 50px;
padding: 3px;
text-align: center;
}
#menu-toggle:checked + label span a {
display: block;
opacity: 1;
line-height: 50px;
font-size: 20px;
border: 1px solid #3F7CAC;
border-radius: 50%;
height: 50px;
width: 50px;
box-sizing: border-box;
}
#menu-toggle:checked + label span a i {
margin-top: 14px;
box-sizing: border-box;
}
#menu-toggle:checked + label span a i figure {
box-sizing: border-box;
margin: 0 auto;
font-size: 11px;
width: 25px;
text-align: center;
height: 0px;
overflow: hidden;
}
#menu-toggle:checked + label span a:hover {
border: 1px solid rgba(224, 4, 130, 0.5);
color: #DE0482;
}
#menu-toggle:checked + label span a:hover > i {
margin-top: 7px;
}
#menu-toggle:checked + label span a:hover > i figure {
display: block;
margin-top: 2px;
height: 10px;
-webkit-transition: all 0.15s ease-out 0s;
-moz-transition: all 0.15s ease-out 0s;
transition: all 0.15s ease-out 0s;
}
#menu-toggle:checked + label p {
margin-top: 10px;
}
#menu-toggle:checked + label::before {
content: "✖";
display: block;
margin-bottom: 20px;
opacity: 0.5;
}
#menu-toggle + label span {
vertical-align: top;
}