关于@keyframe 不能控制display

@keyframe 能控制伪元素的conten但是却不能控制display

<style>
    #box{
        height: 30px;
        width: 30px;
        background: red;
        animation: add 3s  linear infinite;
    }
    @keyframes add{
        from{display:block;}
        to{display:none;}
    }
</style>
<body>
    <div id="box"></div>
</body>

想让box不停闪烁
但是animation却不生效
keyframe里面的display 改成width 却生效了

https://blog.csdn.net/Cherishor/article/details/51100303