I'm looking for a technique to pass an inline element to block through transition when the max-width of the screen is 800px. The margin transition works properly.
My css is the following in SASS:
         li{
            font:{
                size: 18px;
                weight: bold;
            }&:hover{
                color: yellow;
            }
            display: inline;
            margin-right: 10px;
            -webkit-transition-property: display;
            -webkit-transition-property: margin;
            -webkit-transition-duration: 2s;
            @media screen and (max-width: 800px) {
                display: block;
                margin-right: 80px;
            }
        }
 
    