I have an input width a width of 15em, which is extended on hover
#autocomplete {
width: 15em;
}
#autocomplete:hover {
width: 100%;
transition: width 3s;
}
I would like to keep the on hover settings even when unhovering.
I have seen this thread : Make CSS Hover state remain after "unhovering" which allows to change the class of an element on hovering.
Though I need it to happen after 3s so that the transition is not broken