I'm running into a problem with my project.
Here is the code I've been using to hide my div element :
@keyframes hideAnimation {
to {
visibility: hidden;
}
}
To trigger the animation and hide the div after 6 seconds, I have implemented the following:
.env{
animation: hideAnimation 0s ease-in 6s;
animation-fill-mode: forwards;
}
However, now I am facing an issue where I need to create a button to make the div reappear.
The div automatically disappears after 6 seconds, but I want to give users the ability to bring it back by clicking a button.
I'm not sure how to achieve this. I believe JavaScript or jQuery might be the way to go, but I feel overwhelmed.
If anyone could provide assistance, I would greatly appreciate it.