Skip to content

Instantly share code, notes, and snippets.

@victorzen
Last active June 17, 2016 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorzen/cd8d8d32915ac98362f36b745df19ea8 to your computer and use it in GitHub Desktop.
Save victorzen/cd8d8d32915ac98362f36b745df19ea8 to your computer and use it in GitHub Desktop.
Make element appear on timer.

Change '#lp-pom-block-10' for the ID of the element you want to hide and make re-appear in both the javascript and the CSS. You can add multiple elements separating them by a comma ('#lp-pom-block-10, #lp-pom-button-75'). Change 5000 to adjust the timer, time is in milliseconds.

Javascript:

<script>
window.setTimeout(function () {
  $('#lp-pom-block-10').show();
  }, 5000);
</script>

CSS:

<style>
  #lp-pom-block-10 {display: none;}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment