Skip to content

Instantly share code, notes, and snippets.

@kosinix
Last active April 20, 2017 07:44
Show Gist options
  • Save kosinix/551e42ae89c16be4c9ce75531755850e to your computer and use it in GitHub Desktop.
Save kosinix/551e42ae89c16be4c9ce75531755850e to your computer and use it in GitHub Desktop.
Cycle2 event order of exec

Init

  • cycle-bootstrap
  • cycle-slide-added
  • cycle-pre-initialize
  • cycle-initialized
  • cycle-post-initialize
  • cycle-update-view

Transition

  • cycle-before

  • cycle-next

  • cycle-update-view

  • cycle-after

  • cycle-update-view

      jQuery(document).on('cycle-after', slides_selector,	function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-before', slides_selector,	function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-bootstrap', slides_selector,	function(event, optionHash, API) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-destroyed', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-finished', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-initialized', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-next', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-pager-activated', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-paused', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-post-initialize', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-pre-initialize', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-prev', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-resumed', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-slide-added', slides_selector,	function(event, jQueryWrappedSlideEl) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-slide-removed', slides_selector,	function(event, indexOfSlideRemoved, removedSlideEl) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-stopped', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-transition-stopped', slides_selector,	function(event, optionHash) {
        console.log(event.type);
      });
      jQuery(document).on('cycle-update-view', slides_selector, function(event, optionHash, slideOptionsHash, currentSlideEl) {
        console.log(event.type);
      });
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment