A very robust jQuery-based slider plugin. Need to link to a specific slide? No problem. Like a choice of themes? Got it. Need callbacks for when specific slider actions happen? Sure. Need custom tab names? You got it. Need more than one slider per page? Easy.
- Having problems with installing or getting the plugin to work? Ask your question in the CSS-Tricks forums or on StackOverflow.
- Find a bug or have an enhancement request? Submit it here
Download the full repo for a full set of all the cool stuff AnythingSlider can do.
- More themes - AnythingSlider-Themes
- Fx bookmarklet - AnythingSlider-FX-Builder
CMS plugins/mods
- Wordpress plugin - AnythingSlider-for-WordPress
- Movable Type plugin - mt-plugin-anythingslider
- Joomla 2.5 mod - mod_anythingslider
- Fixed video extension to now properly work with multiple sliders. See issue #548.
- Added
onVideoInitializedcallback to the video extension.-
This callback function is called after the video extension has initialized.
onVideoInitialized: function(slider){ }
-
The function is passed a
base(akaslider) parameter which can also be obtained using$('#slider').data('AnythingSlider'). -
All video functions are contained in
slider.videoand video options are contained withinslider.video.options.
-
- Added
onSliderResizecallback &slideshow_resizeevent.-
This callback function is called whenever the slider resizes, but only when the
expandoption istrue. -
The function/event is passed an
eventobject andbaseparameter.onSliderResize: function(event, slider){ }
-
Thanks to wearetelescopic for sharing.
-
-
Core updates:
- Support for jQuery's
addBackand/orandSelfapplied; see issue #508. - The
playRtloption no longer swaps direction of the arrows; see issue #526. - The combination of
stopAtEnd:true,infiniteSlides:falseandshowMultiple>1, no longer shows empty panels. Fixes issue #515. - Deprecated the
addWmodeToObjectoption. Replaced by video extension'swmodeoption; see below for more details.
- Support for jQuery's
-
AnythingSlider Video Extension updates:
-
Sadly, I didn't have time to completely rewrite this extension, but I think I got everything working properly again.
-
Also, I didn't get a chance to do extensive video testing in IE, Safari or Opera... and since the newest Safari will no longer be available for Windows, I'll need some feedback on how it's working in that browser.
-
The video extension no longer "automatically loads" itself
-
You will now need to initialize this extension along with AnythingSlider (defaults shown below):
$('#slider') .anythingSlider() .anythingSliderVideo({ // video id prefix; suffix from $.fn.anythingSliderVideo.videoIndex videoId : 'asvideo', // auto load YouTube api script youtubeAutoLoad : true, // YouTube iframe parameters, for a full list see: // https://developers.google.com/youtube/player_parameters#Parameters youtubeParams : { modestbranding : 1, iv_load_policy : 3, fs : 1, wmode: 'opaque' // this is set by the wmode option above, so no need to include it here } });
-
This fixes issue #167.
-
-
YouTube:
- YouTube video should now properly pause and resume as it now dynamically loads the YouTube iframe api (set
youtubeAutoLoadoption tofalseto disable). Fixes issues #191, #263 & #333. - Add any YouTube iframe parameters within the video extension options, as seen above.
- Also, go here for a full list of iframe parameters.
- This will allow you to hide video controls (
controls: 0) - see issue #501. - Autoplaying videos (
autoplay: 1) will still be problematic, for these reasons:- If multiple videos exists in the slider, they will all start autoplaying at once.
- If there is a single video and it isn't in the starting panel, it will start playing in the background.
- Autoplaying won't work in some mobile browsers like Chrome or Safari (ref) - see issue #454.
- The YouTube iframe wmode parameter is automatically set by the AnythingSlider
addWmodeToObjectoption. - YouTube embedded video still requires swfobject, but does not use the above
youtubeParamsoption.
- YouTube video should now properly pause and resume as it now dynamically loads the YouTube iframe api (set
-
HTML5 video now recognizes the
resumeOnVisibleoption properly. See issue #525. -
The
videoIdoption automatically adds an ID to each video; this option contains the id prefix. The suffix is now properly added so having multiple video initialization blocks will no longer repeat the same Id. -
Changed the video extension to only use a GPL license, to match the main plugin.
-
- Modified vertical
modeto now work withshowMultipleand show multiple slides.- When showing more panels vertically, the plugin keeps the set panel size and just adds it to the bottom. So, if you set the slider to 300x200 and show two panels vertically, it will end up being 400 pixels in height, plus a bit more for the navigation. The plugin did the same with width, so it's just following this pattern.
- When using vertical
modeandexpandistrue, the panels will be forced to fit within the height contraints, so the above pattern is not followed. - If
resizeContentsisfalsethe panels will be left aligned, and the slider will resize it's width and height to match the biggest panel. - This feature request fulfills issue #378.
- This feature has not been rigourously tested with all different combinations, so if you find any problems please report them by opening up an issue.
- Minified version updated, as it was still an older version.