I am encountering an issue with a sliding effect on a div. When it has a class hddn
, the overlay will have right: -100%
from the viewport. However, when the hddn
class is removed, it should return to the viewport with right: 0
. How can I animate this movement?
<div class="wrapper">
<div class="overlay">
<div class="content">
</div>
</div>
</div>
You can view a working example here