Call fotorama gallery in full screen mode via API

后端 未结 2 612
北荒
北荒 2021-01-07 00:39

I\'m launching the fotorama jquery gallery plug-in from a standard HTML link. It works nicely but I\'d like to launch in full-screen mode right away, rather than having to

2条回答
  •  时光取名叫无心
    2021-01-07 00:55

    1. requestFullScreen()

    Use Fotorama API call with prevented auto-initialization:

    
    
    

    But there will be a fullscreen-exit icon at the top-right, and users will be able to leave fullscreen. And even if you make the icon invisible, it will possible to close fullscreen by pressing esc button. So...


    2. data-width="100%" data-height="100%"

    I believe that it’s better to imitate fullscreen with this snippet:

    
    
      

    Example: http://fotorama.io/examples/full-window.html.

提交回复
热议问题