I would like video iframe take max screen size as possible #460
Unanswered
GabrielTavernier
asked this question in
Q&A
Replies: 1 comment
-
Hi, You can customize dimension using CSS, like this: .has-youtube .fancybox__content,
.has-vimeo .fancybox__content,
.has-html5video .fancybox__content {
width: 100%;
height: 100%;
} Keep in mind that the scrip will adjust width/height to match aspect ratio, if you wish, you can disable that (or set another aspect ratio), like this: Fancybox.bind("[data-fancybox]", {
Html: {
videoRatio: false,
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hy,
When I use fancybox 5 with youtube video iframe the size of the container is limited to 960px width and 540 px height even if my window is bigger !
I would like it can be bigger as possible (only limited by the window size).
Is it possible with option ?
Beta Was this translation helpful? Give feedback.
All reactions