sliderX jQuery plugin

Demo & Documentation v1.1

sliderX is a jQuery slider plugin that keeps the image layer and HTML content separate, so captions, buttons, navigation, and animation controls stay editable without changing the slide markup itself.

This local page uses the same documentation-first layout as your alertX template, but only for sliderX content. The live demo below updates the same slider instance in place and the generated configuration block refreshes as you change each option.

Live Demo

Use the controls below to test animation mode, autoplay, button placement, indicator style, and transition timing. The selector only shows animation files that were declared in window.sliderXAssetConfig.

Wild Plant with Ripening Fruits

Clusters of small fruits shift from green to red on a wild plant. A simple glimpse of nature's seasonal transformation.

Cannabis Sativa Leaves

Sharp, serrated leaves spread in rich green layers. A bold and recognizable natural pattern.

Golden Blossom Close-Up

A soft yellow flower blooms with delicate detail. Bright tones stand out against muted foliage.

Pea Plant Flower in Bloom

A pink and white flower emerges on a pea plant. A quiet moment before pods begin to form.

Fresh Peppers and Sliced Onions

Colorful bell peppers rest beside freshly cut onions. A vibrant scene from everyday kitchen prep.

The configuration block below updates as you change the live controls:

Quick Start

Declare the animation modules you want to ship, keep your slide markup simple, then initialize the plugin once. The demo follows the same structure shown here.

<script>
window.sliderXAssetConfig = {
  animations: {
    instant: true,
    swipe: true,
    shift: true,
    slidez: true
  },
  extraStyles: ["assets/css/demo.css"],
  extraScripts: ["assets/js/demo.js"]
};
</script>
<script src="assets/js/sliderx.asset-loader.js"></script>
$("#sliderx-showcase").sliderX({
  indicatorType: "circles",
  indicatorChrome: true,
  navInside: true,
  buttonsInside: true,
  buttonsPosition: "center",
  animation: "cubeover",
  animationDuration: 1000,
  autoPlay: true,
  interval: 7000,
  pauseOnHover: true
});

Available Animations

The current local demo loads the following animation modules. Only these names are shown in the animation selector and only these CSS / JS files are loaded by the asset loader.

animation summary files
instantImmediate slide switch with no transition.instant.css / instant.js
slidexHorizontal strip movement across the slide row.slidex.css / slidex.js
slideyVertical strip movement through stacked slides.slidey.css / slidey.js
slidezZoom handoff between the current and target slides.slidez.css / slidez.js
slidefadeShort directional move combined with a fade.slidefade.css / slidefade.js
shiftDirectional push with the current image shrinking away.shift.css / shift.js
swipe3D carousel basic transition with rotating side cards.swipe.css / swipe.js
linesSampled color bars cover then reveal the next slide.lines.css / lines.js
circlesDribbles-style sampled circles flood then uncover the scene.circles.css / circles.js
collageCanvas-driven collage travel with blurred backdrop.collage.css / collage.js
hypnoBubbles-style concentric reveal built from sampled colors.hypno.css / hypno.js
tilesBrick-style 3D tile flip transition.tiles.css / tiles.js
thumbsPhoto-deck collapse and expand transition.thumbs.css / thumbs.js
albumBook-style half-page turn over the next image.album.css / album.js
squaresGrid-based reveal through staggered tile patterns.squares.css / squares.js
slicesVertical slice variants with staggered strip timing.slices.css / slices.js
blastOverflow mosaic burst beyond the slider frame.blast.css / blast.js
openTURN-style hinge opening from rotating edges.open.css / open.js
curtainsLouver-style vertical curtain flip.curtains.css / curtains.js
cubeoverCube-face rotation between slides.cubeover.css / cubeover.js
parallaxLayered movement with faster content and slower background.parallax.css / parallax.js
revealxHorizontal wipe reveal.revealx.css / revealx.js
revealyVertical wipe reveal.revealy.css / revealy.js

Available Options

The table below lists the runtime options supported by the plugin. These same keys can be used in the initial constructor or passed again through updateOptions.

option values default description
startIndexnumber0Initial active slide index before the slider is first rendered.
indicatorTypenone, circles, squares, underscores, pillcirclesChooses which indicator shape is rendered in the navigation area.
indicatorChrometrue, falsetrueToggles the framed background around inside indicators.
navInsidetrue, falsefalsePlaces the indicator navigation inside or outside the viewport.
buttonsInsidetrue, falsefalsePlaces the previous / next buttons inside or outside the viewport.
buttonsPositiontop, center, bottomcenterControls the vertical position of inside previous / next buttons.
animationany loaded animation nameinstantSets the current transition mode. Only declared animation files can be used.
animationDurationnumber in ms, minimum 250820Duration for animated transitions. Instant mode ignores it.
autoPlaytrue, falsefalseAutomatically advances the slider after the configured interval.
intervalnumber in ms, minimum 25006500Delay between autoplay advances.
pauseOnHovertrue, falsetruePauses autoplay while the slider is hovered.

Methods

SliderX exposes a small set of direct runtime methods through the jQuery plugin instance.

method arguments description
nextnoneMoves to the next slide.
prevnoneMoves to the previous slide.
goToindex, directionHintMoves to a specific slide index and optionally forces next / prev direction.
setIndicatorTypeindicatorTypeUpdates the active indicator style and rebuilds the navigation.
setIndicatorChromebooleanToggles the inside navigation frame.
setNavInsidebooleanMoves the indicator navigation inside or outside the viewport.
setButtonsInsidebooleanMoves previous / next buttons inside or outside the viewport.
setButtonsPositiontop, center, bottomChanges the vertical alignment of inside previous / next buttons.
setAnimationanimationNameSwitches to a different loaded animation module.
setAnimationDurationnumber in msChanges the transition duration at runtime.
updateOptionsoptions objectApplies multiple option changes at once and rerenders the slider.
destroynoneStops timers, unbinds events, and removes the stored plugin instance.