Biotoxsin 4 Posted June 8, 2020 Report Share Posted June 8, 2020 Здравствуйте! Подскажите как можно справиться с такой проблемой: <div class="test"></div> .test { position: relative; height: 10px; width: 10px; background: #353535; opacity: 0; transition: all 3s linear; } .test::before { content: ""; position: absolute; height: 10px; width: 10px; background: #595959; z-index: -1; } И если мы присвоим блоку "test" "opacity: 1;" во время анимации наш "::before" будет отображаться поверх нашего блока "test". Скажите есть возможность отображения этого "::before" как задумывалось? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.