Closed johangiraud closed 1 year ago
Here is the solution 😃:
const modal = document.querySelector('.modal'), modalContent = modal.innerHTML; tippy('.card', { content: modalContent, allowHTML: true, interactive: true, animation: 'shift-away', followCursor: true, arrow: false, onShow(instance) { setTimeout(() => { let video = instance.popper.getElementsByTagName('video')[0]; video.currentTime = 0; //start from begining video.play(); }, 1); }, });
Thanks to this answer
Discussed in https://github.com/atomiks/tippyjs/discussions/1088
Here is the solution 😃:
Thanks to this answer