I’ve just been working on developing a way to fire a JavaScript event on a video element whenever the video loops back to the start (or the user plays the video back after it has ended) for one of my projects. I’ve been searching for ways to do it online but none of them worked for me, so I decided to invent my own solution. It took many hours to make until it works well enough for me, as JavaScript naturally doesn’t have its own onloop
event handler. Might not necessarily related to Perchance, just wanted to share something unusual.
Here’s a simple demonstration: https://perchance.org/custom-onloop-event-demo#edit
What are your thoughts about this?
can only speak for myself but I enjoy seeing it.
thoughts: