Announcement

Collapse
No announcement yet.

delay and element from displaying

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ids
    replied
    I was able to get something similar working. This one looks like it will be a little cleaner though.

    Scott

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    Code:
    $(document).ready(function() {
    $('#mybutton').hide().delay(3000).fadeIn(2200);
    });

    Leave a comment:


  • ids
    replied
    It's the Iron and Wool RT. I'm already using some JQuery/JS to control the state of the button with product variants. But, the default is Add. We don't want to change that if we don't need to. Delaying the button render may be the optimal solution for this scenario. A show/hide could work I guess. Would be good enough to wait for a Document Ready and Show on a timer? Not sure how I would do that.

    Scott


    Leave a comment:


  • Matt Zimmermann
    replied
    Hi Scott,

    Depending on what you are delaying for, you may be able to use JavaScript to either listen for something or set a timeout before revealing the button. If it is not a matter of show/hide, then maybe using JavaScript to add the button after your delay could work as well.

    Leave a comment:


  • ids
    started a topic delay and element from displaying

    delay and element from displaying

    I might need to delay the Add 2 Basket button from showing up on the page. Is there a way to do this?

    Scott
Working...
X