// html
<div class="packUp w bf t-c">
<span class="upArrows">
<b></b>
<b></b>
</span>
收起
</div>
<div class="downUp w bf t-c">
<span class="downArrows">
<b></b>
<b></b>
</span>
展开更多
</div>
// css
.packUp {
padding: .2rem 0 .2rem .2rem;
font-size: 0.26rem;
font-weight: 400;
color: #4C85F8;
line-height: 0.37rem;
.upArrows {
position: relative;
>b {
left: -.4rem;
display: inline-block;
position: absolute;
height: .08rem;
width: .08rem;
}
>b:nth-child(1) {
animation: opcatyFir 1s 0s infinite;
top:0.08rem;
border-right: .06rem solid #4C85F8;
border-top: .06rem solid #4C85F8;
padding: .06rem;
transform: rotate(-45deg);
}
>b:nth-child(2){
animation: opcatySec 1s 0s infinite;
top:.22rem;
border-right: .06rem solid #4C85F8;
border-top: .06rem solid #4C85F8;
padding: .06rem;
transform: rotate(-45deg);
opacity: 0.5;
}
}
@keyframes opcatyFir {
0%{
opacity: 1;
}
50%{
opacity: 0.75;
}
100%{
opacity: 0.5;
}
}
@keyframes opcatySec {
0%{
opacity: 0.5;
}
50%{
opacity: 0.75;
}
100%{
opacity: 1;
}
}
}
.downUp {
padding: .2rem 0 .2rem .2rem;
font-size: 0.26rem;
font-weight: 400;
color: #4C85F8;
line-height: 0.37rem;
.downArrows {
position: relative;
>b {
left: -.4rem;
display: inline-block;
position: absolute;
height: .08rem;
width: .08rem;
}
>b:nth-child(1) {
animation: opcatyFir 1s 0s infinite;
top:0;
border-right: .06rem solid #4C85F8;
border-top: .06rem solid #4C85F8;
padding: .06rem;
transform: rotate(-225deg);
opacity: 0.5;
}
>b:nth-child(2){
animation: opcatySec 1s 0s infinite;
top:.16rem;
border-right: .06rem solid #4C85F8;
border-top: .06rem solid #4C85F8;
padding: .06rem;
transform: rotate(-225deg);
}
}
@keyframes opcatyFir {
0%{
opacity: 0.5;
}
50%{
opacity: 0.75;
}
100%{
opacity: 1;
}
}
@keyframes opcatySec {
0%{
opacity: 1;
}
50%{
opacity: 0.75;
}
100%{
opacity: 0.5;
}
}
}
![image.png](https://upload-images.jianshu.io/upload_images/13996371-a500b1ac48ec3822.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
css三线箭头动图
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 目前做的一个微信内的web系统有一个页面需要用到,查了些资料实现了,分享一下。 效果如下: 这个地方呢其实主要用到...
- 在开发中,三角箭头是很常见的icon,很多时候不需要UI提供切图我们可以自己用几行代码写出来,利用div的边框旋转...
- 1、css写箭头[https://blog.csdn.net/Che_rish/article/details/7...