Animations

Animation
Bespoke – apply to any content elements

  1. Set requestDelay: 100 option (must be the same value as in the first animation phase below)
  2. Include the snippet (below)
  3. Customise it (change values or substitute fadeOut/fadeIn with e.g. a more complex animate)
//Please set requestDelay in settings to the same value as in fRequest below, and use this code

jQuery(window).on("pronto.request", fRequest)
         .on("pronto.render", fRender);

function fRequest() {
     jQuery("#content").fadeOut(100); // requestDelay setting must be same as this animation duration
}

function fRender() {
     jQuery("#content").stop(true, false).fadeIn(500);
}

Leave a Reply

Your email address will not be published. Required fields are marked *