Created
October 28, 2015 15:45
-
-
Save zackbloom/a4f0f071bffee59d0218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var shepherdInterval = setInterval(function(){ | |
if (window.ShepherdInstallHelper && window.ShepherdInstallHelper.tour){ | |
clearInterval(shepherdInterval); | |
ShepherdInstallHelper.tour.on('show', function(opts){ | |
var prev = opts.previous; | |
var step = opts.step; | |
if (!prev) | |
return; | |
prev.el.classList.add('shepherd-open'); | |
prev.el.classList.add('shepherd-enabled'); | |
step.once('show', function(){ | |
step.el.style.opacity = 0; | |
step.el.style.pointerEvents = 'none'; | |
prev.el.style.transition = '1s transform ease-in-out'; | |
prev.el.style.transform = step.el.style.transform; | |
setTimeout(function(){ | |
prev.el.classList.remove('shepherd-open'); | |
prev.el.classList.remove('shepherd-enabled'); | |
step.el.style.opacity = 1; | |
step.el.style.pointerEvents = ''; | |
}, 1000); | |
}); | |
}); | |
} | |
}, 250); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment