Baptiste
Posts
-
Fullscreen slider images flash in Safari -
Project Thumbnails with changing backgrounds...Aug 20, 2021, 12:12 PM -
Scroll on iFrame (vimeo)Jan 22, 2021, 10:05 AMOk I'll answer to my own question for people who ask or have the same issue haha. If you use the iframe, using the vimeo api is, for the moment, the best way I found to solve that problem for Firefox and Chrome.
Insert the iframe :
<div class="iframeVimeo" style="padding:56.25% 0 0 0;position:relative;"><iframe src="yourvideocolor=ffffff&title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe></div>
Add css to block the pointer event on that iframe :
.iframeVimeo iframe { pointer-events: none; }
And then add the JS for the api and the click on the play button :
<script src="https://player.vimeo.com/api/player.js"></script> <script type="text/javascript"> var player = new Vimeo.Player(document.querySelector('.iframeVimeo iframe')); var iframe = document.querySelector('.iframeVimeo').addEventListener('click', function() { player.getPaused().then(function(paused) { if (paused) { player.play(); } else { player.pause(); } }).catch(function(error) { }); });</script>
It should works ✌️
-
POST THUMBNAILFeb 10, 2016, 11:25 AM@pintomike
You can add a thumbnail here :
Lay options > Misc options
B. -
Use of oEmbed for video/media implementationJul 23, 2015, 10:12 AMSoundcloud and instagram will be cool.
-
(lightbox) Close buttonSep 3, 2015, 9:44 AMHi Armin, do we have any options to change the close button for the lightbox addon?
To change the cross by an other or maybe an image for exemple.
Thanks. -
Image Hover Add-on / Using without active linkMar 31, 2021, 7:53 AM@Richard, no no, no problems, I'm just curious about new features.
I'll do it with custom code for the moment.Thanks anyway,
Best.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it