autoplay=1&muted=1
in a hidden modal and use Webflow interactions to display it on button click.To autoplay a Vimeo video, stop it with a custom button, and close the video modal, follow these steps using Webflow’s embed and interactions features.
https://player.vimeo.com/video/123456789?autoplay=1&muted=1
autoplay=1
will start the video automatically once the iframe/modal loads.muted=1
to avoid user-interaction restrictions.display: none
).display: none
).If you want to retain the video state or avoid iframe reloads, you can use Vimeo’s JavaScript API:
Give your iframe an ID (e.g., vimeo-player
).
Add this custom code in the Page Settings → Before
tag:
```javascript
```
This allows you to pause the video instead of reloading the iframe.
Use a Vimeo embed with autoplay parameters, control the video via Webflow interactions to show/hide the modal, and optionally add JavaScript to pause playback when the close button is pressed. This method ensures the video starts automatically when opened, and stops cleanly when closed.