I was just looking at this and intuitively I thought that it would make more sense to have an event to show and hide element A for [x] seconds and [y] seconds i.e. Show element A for [x] seconds and hide for [y] seconds.
If you just want to hide or show, you can put 0 seconds in.
The only advantage of splitting it is if you wanted to show show or hide hide.
How would I configue this if I wanted to hide something after a specific time of the day? Lets say: Hide this element after 20:00 and show it after 06:00???