Can you trigger a video from a button click?
Yes. ReelFlow lets you open its interactive video player from any button, link, or image on your page – no code required. Set the element's link destination to a reserved value (#reelflow-player-open) or attach a CSS class (.reelflow-player-open), and clicking it launches the Overlay Player instantly. For more advanced control – like managing multiple Flows on one page or firing custom third-party events – the ReelFlow Player API gives developers full programmatic access.
How do you make a button open a video?
Any clickable element on a page – a button, a text link, even an image – can be turned into a video trigger. Set its link destination to one of two reserved values:
- Open the player:
#reelflow-player-open - Close the player:
#reelflow-player-close
Clicking it behaves exactly like clicking the eye-catcher – it launches the Overlay Player. No script needs to be written and no developer ticket needs to be raised.
How do you set it up in your CMS?
- Find the element. Locate the button or link you want to use in your website builder or CMS.
- Set the link. Enter
#reelflow-player-open(or#reelflow-player-close) in the URL/link/href field. - Publish the page.
- Confirm a Flow is live. An Overlay Flow needs to be published on the page – you can turn off its eye-catcher entirely in the Flow Builder's activation settings if the button should be the only way to launch it.
- Test the click. The Overlay Player should open or close accordingly.
This works the same way regardless of CMS – WordPress, Webflow, or otherwise – as long as you can set a link destination on an element. A CSS class works identically for builders that don't expose a link field: .reelflow-player-open or .reelflow-player-close.
What if you need more advanced control?
For setups beyond a simple open/close button, the ReelFlow Player API gives developers direct programmatic access once the install code is verified on the page:
window.addEventListener('reelflow:ready', () => {
var targetFlow = ReelFlow.getFlow("F-123456ABCD");
targetFlow.player.show();
});- Target a specific Flow by ID with
ReelFlow.getFlow(). - Discover Flows on the page dynamically with
ReelFlow.getAvailableFlows(), without hardcoding an ID. - Listen for interactions, like
actionButton:click, to fire custom events in third-party tools such as a CRM or analytics platform.
Does this work with multiple videos on the same page?
The link/class method is built for the common case of one Overlay Flow per page. If a page publishes more than one Overlay Flow at once, the simple reserved link can't tell them apart – that's when the Player API's getFlow() and getAvailableFlows() methods are the right tool, since they let a button target one specific Flow by ID.
Why trigger a video from a custom button instead of relying on the eye-catcher?
The eye-catcher is ReelFlow's default launch point, but plenty of layouts call for the video to open from somewhere more intentional – a "Watch how it works" link in a pricing table, a CTA inside a blog post, or a nav bar item. Wiring a button directly to the player keeps the video available exactly where a visitor's question already is, without waiting for them to notice a floating preview.
FAQ
Can I use this on multiple buttons?
Yes – the same reserved value can be added to as many links or buttons as needed on a page.
Will clicking the button navigate away or scroll the page?
No. It only controls the player; the page itself doesn't move.
What if my button isn't doing anything?
Check that the href is set exactly as #reelflow-player-open or #reelflow-player-close (including the #), with no extra spaces, and that the ReelFlow install code is verified on the page.
Does this require a developer?
No – most CMS platforms let you set a link destination without touching code. Developers only need to get involved for Player API use cases like multi-Flow pages or custom event tracking.
Related questions
Turning a button into a video trigger takes one small change: set its link destination to #reelflow-player-open instead of a normal URL. Publish the page, make sure an Overlay Flow is live on it, and clicking the button opens the ReelFlow video player immediately. No script, plugin, or developer ticket required.
Yes. ReelFlow's trigger method isn't limited to buttons - it works on any clickable element you can attach a link to, including images and logos. Point the image's link destination to the reserved value #reelflow-player-open and clicking it launches the Overlay Player, exactly as if it were a button.
You don't need to rebuild anything. Open the existing button's settings, find its link (URL or href) field, and replace whatever's there with ReelFlow's reserved value #reelflow-player-open. The button's design, size, and position all stay untouched - only its click behaviour changes. If the button doesn't expose a link field, adding the .reelflow-player-open CSS class does the same job.
Yes. ReelFlow doesn't distinguish between a button and a text link - both are simply clickable elements with a link destination, and both work the same way. Point a text link's href to #reelflow-player-open and clicking the words launches the Overlay Player, just as a button would.
Give visitors a one-click way to watch
Add a button anywhere on your site that opens ReelFlow's interactive video player instantly — no code, no developer ticket.