请问大神,css3的一个问题!
答案:1 悬赏:80 手机版
解决时间 2021-03-19 21:57
- 提问者网友:难遇难求
- 2021-03-19 18:08
请问大神,css3的一个问题!
最佳答案
- 五星知识达人网友:逐風
- 2021-03-19 18:43
- 这个你需要做两个动画效果
@keyframes animate1
{
0% {width: 50px;}
100% {width:100px;}
}
@keyframes animate2
{
0% {width:100px;}
100% {width:50px;}
}
.animateClass1
{
animation:animate1 800ms;
}
.animateClass2
{
animation:animate2 800ms;
}
点击时判断 按钮的class样式 如果没有 则增加.animateClass1 如果是animateClass1 则替换为.animateClass2
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯