Constantin Stan
1 min readFeb 7, 2020

--

I realised that the div movement might work in some browsers, and in others not (work in Chrome, but not in Safari for example).

So, you can play with the z-index in the JS function that triggers the video play (playVideoInJWPlayer). Then listen to the close event of the player (it surely has an API as far as I remeber) and restore the z-index to the state it was before play:

document.getElementById("jwPlayer").style.zIndex = "90";

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response