So I have made this mobile navigation and everything is working fine. My menu icon turns in to a X and I can toggle the is-open class with jQuery. But I can't get this simple transition to work and it is driving me crazy. Can anyone please help me out?
.mobile-nav
background: rgba(0,0,0,1)
display: none
padding: 20px 0
position: absolute
top: 44px
transform: translateY(-100%)
transition: all 0.3s ease-in-out
width: 100%
@media (max-width: 770px)
.mobile-nav.is-open
display: block
transform: translateY(0%)