哪个 属性 用于像雅虎邮件输入这样的底部边框动画?
which property to use for border-bottom animation like yahoo mail inputs?
我想在导航栏中为我的列表项 border-bottom
制作动画,但我不知道我应该使用什么 property/s。
诀窍是使用嵌入阴影
input {
width: 80%;
height: 30px;
border: none;
background: transparent;
}
.shadow {
box-shadow: inset 0px -1px 0px 0px #ccc;
transition: 0.8s;
}
.shadow:focus {
box-shadow:inset 0px -3px 0px 0px #7777dd;
outline: 0;
}
<input class="shadow" type="text" placeholder="Placeholder" />
我想在导航栏中为我的列表项 border-bottom
制作动画,但我不知道我应该使用什么 property/s。
诀窍是使用嵌入阴影
input {
width: 80%;
height: 30px;
border: none;
background: transparent;
}
.shadow {
box-shadow: inset 0px -1px 0px 0px #ccc;
transition: 0.8s;
}
.shadow:focus {
box-shadow:inset 0px -3px 0px 0px #7777dd;
outline: 0;
}
<input class="shadow" type="text" placeholder="Placeholder" />