I'm having the following setup:
#search-suggestion {
@include transition(top 0.5s ease);
left: 25%;
width: 50%;
display: block;
padding: 10px;
z-index: -1;
opacity: 1;
&.visible {
top: 66px;
}
&.notvisible {
top: -200px;
}
}
but the transition isn't working, this works however when I add the top
element to the #search-suggestion
. But then the functionality doesn't work as intended with the .visible
and .notvisible
;
adding the @include transition(top 0.5s ease);
to the .visible
and .notvisible
doesn't work for the animations.
Any suggestions?