I want to use css only and make buttons slide to the right on mouse hover. I also want them to stay 'slided out' when I hover over the slided out buttons. I have looked at some posts and tried to do the same but my transition doesnt really work. Also, when I hover over buttons, buttons disappear. Thanks!!
I created a jsfiddle so you can see what I mean.
https://jsfiddle.net/codingcodingcoding/58406ahk/
.div{
-webkit-transition: width 5s;
transition: width 5s;
}
.hiddenButtons{
display:none;
}
.div:hover + .hiddenButtons{
display:inline-block;
}
.div:not(:hover) + .hiddenButtons{
display:none;
}
<div class="div">
SHOW
</div>
<div class="hiddenButtons">
<div class="button1">
<a>button1</a>
</div>
<div class="button2">
<a>button2</a>
</div>
</div>