WP Manifestindependent plugin directory
manifest / utilities / shuffle-elements

Shuffle Elements

Shuffles elements on the page either on load, on click or at set intervals.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tugbucket/shuffle-elements/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Shuffles elements on the page either on load, on click or at set intervals.

Sample shortcode

[shuffleelements parent=".ngg-caption-view-wrapper" children=".ngg-gallery-thumbnail-box" delay="1000" fade_speed="200" button_text="clicky!" on_load="yes" aria_label="Shuffle images"]

Shortcode options

  • parent: Uses jQuery CSS selectors. This is the element wrapping the items you want to shuffle.
  • children: Uses jQuery CSS selectors. These are the items you want to shuffle.
  • delay: This is the amount of time to wait before shuffling. Setting this, makes the shuffle auto-play. In milliseconds.
  • fade_speed: This is the amoung of time it takes for the images to fade in and fade out. In millisecounds. Default is 500.
  • button_text: This is the text of the button. If this is not set, the button will not appear.
  • aria_label: This is the aria label for the button. This is optional.
  • on_load: If set to yes, it will shuffle on page load. Default is yes.

Notes

  • Time in milliseconds for example, 1 second is 1000 and 1 minute is 60000
  • The button has a class _se_2s8wbutton so you can style it how you see fit.