Magnific-popup: Youtube video jerk/shaking in Iframe popup

Created on 2 May 2018  Â·  10Comments  Â·  Source: dimsemenov/Magnific-Popup

Youtube video is jerking/shaking in iframe popup. See the video example in at

http://dimsemenov.com/plugins/magnific-popup/

Click on "Open Youtube Video" link on this page.

Most helpful comment

I think i've solved this - by commenting out this line in the css, looks like it's something to do with the way Chrome is handling the drop shadow...

box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);

All 10 comments

I am having the same exact issue. It is happening in Chrome. Not in Firefox.

We are having the same issue on Mac -> chrome on all of our sites.

I think i've solved this - by commenting out this line in the css, looks like it's something to do with the way Chrome is handling the drop shadow...

box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);

Thanks a lot. It's working.

On Fri, May 4, 2018, 1:59 PM squire2k notifications@github.com wrote:

I think i've solved this - by commenting out this line in the css, looks
like it's something to do with the way Chrome is handling the drop shadow...

box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dimsemenov/Magnific-Popup/issues/1062#issuecomment-386536450,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVnVcAy_Xbu1Qz3WV727COgXph6Qdygsks5tvBFcgaJpZM4Tvpwy
.

Can confirm it's a Chrome issue, I first noticed it when Chrome updated (roughly 2 weeks ago from today) and my other computer was a version behind with no issues.

Thanks @squire2k for saving me a tonne of work!

Can confirm this works. If you happen to use the scss file you can also override the default value of the following variable before you import it:

$mfp-shadow: none;

Anything that expands the iframe element like drop shadow, border or padding will cause shaking.

I renewed Chrome to version 67.0.3396.79 64bit, the problem was disappeared

In chrome problem is solved but still exists in stable opera

In case this helps anyone else...

For us the issue was seemingly that we had an iframe with width 100%, a small border, and box-sizing: border-box. For some reason the calculation of this iframe's width on Chrome and Opera caused the whole iframe to shake strangely (and only on some machines, despite running the same OS and version of Chrome).

We were able to fix it by any of the following:
a) Change width (<100% or >101% both worked)
b) Remove border
c) Change to box-sizing: content-box

Very strange issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amir-rahnama picture amir-rahnama  Â·  4Comments

influxweb picture influxweb  Â·  4Comments

softshape picture softshape  Â·  4Comments

tillilab picture tillilab  Â·  4Comments

despecial picture despecial  Â·  5Comments