anteriovieira / vue-youtube

A simple component for a powerful API. vue-youtube provides a simple layer for you to use your imagination while over the YouTube IFrame Player API.
MIT License
340 stars 56 forks source link

How to change the styling and toggle classes on the video iframes when user interacts with the video #37

Open Senpaiproductions opened 5 years ago

Senpaiproductions commented 5 years ago

I stored video ids in my database and now I want to loop through them and add a vue-youtube component for each of them. This is working but when I want to change the class of the component using the onPause() event? It doesn't work. How do I style the video iframes and change classes based on the current video that was clicked on the browser?

TitanFighter commented 5 years ago

Probably something like this