Menu icon Foundation
Youtube Videos in a Reveal

I want to use the Youtube JSAPI to add video to a modal & auto play it. I'm nearly there, and yet totaly stumped.

The first one works, but clicking a second link to open a new video opens the first one.

check out my pen, http://codepen.io/anon/pen/HkoKg

Any help would be awesome. I'm stuck!

jsapiVideo

I want to use the Youtube JSAPI to add video to a modal & auto play it. I'm nearly there, and yet totaly stumped.

The first one works, but clicking a second link to open a new video opens the first one.

check out my pen, http://codepen.io/anon/pen/HkoKg

Any help would be awesome. I'm stuck!

Will Barker almost 5 years ago

This was just me being silly really. Here is a working version in case anyone comes along

http://codepen.io/anon/pen/HkoKg?editors=101