a { color: #000; text-decoration: none; }
a.button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: flex-start;
overflow: hidden;
padding: 8px;
border: 1px solid #ccc;
border-radius: 8px;
background: #eee;
transition: .2s;
.material-icons {
font-size: 24px;
transition: .2s;
}
.label-hidden {
max-width: 0;
opacity: 0;
max-height: 1em;
white-space: nowrap;
transition: .2s;
}
&:hover {
.label-hidden {
max-width: 200px;
margin-left: 8px;
opacity: 1;
}
}
}
<a class="button button-small"
target="_blank" rel="noopener noreferrer"
href={ "https://www.google.com/maps/search/" + it["Station Name"] }>
<i class="material-icons">map</i>
<span class="label-hidden">Show location</span>
</a>
我想应用CSS到我的项目,并使用下面的链接动画过渡。example在这过渡从左向右移动,但我想从右向左过渡。
任何解决方案都将有所帮助
先谢了。
1条答案
按热度按时间u3r8eeie1#
你是说像这样??