Skip to content

remove/destroy ModalVideo on smaller screen size #25

@DaneSuen

Description

@DaneSuen

I like the function from Magnific Popup that the button acts as a link instead of a modal toggle when open/resize page to a small screen. Ideally, on mobile devices, when users click the video link, I'd prefer them to open and see it in their YouTube app, instead of a small popup on the page. I'm thinking either

  1. tweak the plugin function to detect screen size, and make the link acts differently. OR
  2. add my own function to listen to resize event, and destroy/re-add the ModalVideo when screen reach a brekapoint.
    I'm leaning towards the latter for now, and wonder if there's a way to destroy ModalVideo instances in the current plugin?
    Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions