# Embedding vimeo video responsive

**URL:** <https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 21, 2015, 3:56pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554 "2015-03-21T15:56:26Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzdega](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bzdega/32/134_2.png) [@bzdega](https://forum.getkirby.com/u/bzdega)\
**Post date:** [March 21, 2015, 3:56pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/1 "2015-03-21T15:56:26Z")

</div>

Hi,

are there any kirby-specific solutions how to embed a vimeo-video in an responsive format, so that it is nice looking on big and small screens?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [March 21, 2015, 4:01pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/2 "2015-03-21T16:01:25Z")

</div>

You could take a look at [https://github.com/distantnative/kirby-oembed](https://github.com/distantnative/kirby-oembed)

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [February 27, 2017, 7:27pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/3 "2017-02-27T19:27:40Z")

</div>

Hi,

should the plugin play the video when working locally with MAMP?  
Because it doesn’t in my case. It is responsive, but the video doesn’t play.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 27, 2017, 7:39pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/4 "2017-02-27T19:39:50Z")

</div>

If you have an internet connection, the video should play locally, yes.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [February 27, 2017, 8:13pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/5 "2017-02-27T20:13:59Z")

</div>

I have, it didn’t. Until I put the lazy loading js in. Obviously this is a requirement?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 27, 2017, 8:45pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/6 "2017-02-27T20:45:57Z")

</div>

According to the readme, lazyloading is an option, not a requirement; but if you set lazy loading to true, you probably have to include the script as well.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [February 27, 2017, 9:55pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/7 "2017-02-27T21:55:24Z")

</div>

I didn’t do it on purpose. I had just installed the plugin and tried an embed in the text area of the panel - no play. Anyway, now it does.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 27, 2017, 11:51pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/8 "2017-02-27T23:51:14Z")

</div>

I think the lazyload option is set to true as default. So without any config changes, you will need the JS part for videos. Otherwise you would need to set the lazyload config option to false.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [February 28, 2017, 1:58am UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/9 "2017-02-28T01:58:14Z")

</div>

I guess that was the case. So, maybe change the instructions and give a hint that one has to link to the oembed.js in any case.

BTW: It works nicely. What a great plugin! Thank you!

---

<div class="post-metadata">

**Author:** ![bnomei](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bnomei/32/775_2.png) [@bnomei](https://forum.getkirby.com/u/bnomei)\
**Post date:** [March 1, 2017, 9:35am UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/10 "2017-03-01T09:35:49Z")

</div>

you could also try: [http://fitvidsjs.com](http://fitvidsjs.com)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 1, 2017, 9:40am UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/11 "2017-03-01T09:40:44Z")

</div>

Oembed does not require jQuery, while fitvidsjs does. Certainly an alternative if you use jQuery anyway.

---

<div class="post-metadata">

**Author:** ![Svnt](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/svnt/32/620_2.png) [@Svnt](https://forum.getkirby.com/u/Svnt)\
**Post date:** [March 1, 2017, 4:52pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/12 "2017-03-01T16:52:10Z")

</div>

I use plain CSS to resize the video:

```
.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

<div class="videoWrapper">
    <!-- Copy & Pasted from YouTube -->
    <iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>

```

works the same for Vimeo.

S.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [March 1, 2017, 5:49pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/13 "2017-03-01T17:49:18Z")

</div>

I used FitVids a lot but the oembed plugin seemed to be a quick solution.  
Using the pure css method has the advantage that it should work for google maps iframes as well.

---

<div class="post-metadata">

**Author:** ![Svnt](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/svnt/32/620_2.png) [@Svnt](https://forum.getkirby.com/u/Svnt)\
**Post date:** [March 2, 2017, 1:44am UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/14 "2017-03-02T01:44:53Z")

</div>

> [@Ndugu](#):
>
> it should work for google maps iframes as well.

it does.

some more chars… [http://sventruemper.de/en/blog/fullscreen-background-video-for-getkirby-cms](http://sventruemper.de/en/blog/fullscreen-background-video-for-getkirby-cms)

---

<div class="post-metadata">

**Author:** ![manuelmoreale](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/manuelmoreale/32/839_2.png) [@manuelmoreale](https://forum.getkirby.com/u/manuelmoreale)\
**Post date:** [March 3, 2017, 5:58am UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/15 "2017-03-03T05:58:32Z")

</div>

[http://embedresponsively.com](http://embedresponsively.com) Maybe this can be useful to someone.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [March 10, 2017, 4:54pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/16 "2017-03-10T16:54:48Z")

</div>

Will rewrite the README to clarify it 👍

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:50pm UTC](https://forum.getkirby.com/t/embedding-vimeo-video-responsive/554/17 "2025-02-06T16:50:29Z")

</div>

Archived on February 6, 2025, 4:50pm UTC


