css3多个动画的执行问题

1、用react做的h5项目,有一个按钮和菜单 需要做一个淡入淡出的效果 点击按钮淡入 再点淡出
2、用css3做的动画,貌似动画执行的时候两个动画同时执行了,我想点击一次执行淡入再点淡出 这个能通过css3来做吗 还是说必须得js
.link-lists {

        width: 100%;
        position: fixed;
        top: 50px;
        bottom: 0;
        z-index: 2;
        background-color: rgba(255,255,255,0.9);
        -webkit-animation: fadeIn .8s ease-in,fadeOut .8s ease-out;
        li {
            height: 75px;
            line-height: 75px;
            list-style: none;
            text-align: center;
            border-bottom: 1px solid #ccc;
            a {
                color: #000;
                display: block;
            }
        }
    }
阅读 2.5k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题