index.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>AnythingSlider</title>
  6. <link rel="shortcut icon" href="demos/images/favicon.ico">
  7. <link rel="apple-touch-icon" href="demos/images/apple-touch-icon.png">
  8. <!-- jQuery (required) -->
  9. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
  10. <script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
  11. <!-- Anything Slider optional plugins -->
  12. <script src="js/jquery.easing.1.2.js"></script>
  13. <!-- http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js -->
  14. <script src="js/swfobject.js"></script>
  15. <!-- Demo stuff -->
  16. <link rel="stylesheet" href="demos/css/page.css" media="screen">
  17. <!-- AnythingSlider -->
  18. <link rel="stylesheet" href="css/anythingslider.css">
  19. <script src="js/jquery.anythingslider.js"></script>
  20. <!-- AnythingSlider video extension; optional, but needed to control video pause/play -->
  21. <script src="js/jquery.anythingslider.video.js"></script>
  22. <!-- Ideally, add the stylesheet(s) you are going to use here,
  23. otherwise they are loaded and appended to the <head> automatically and will over-ride the IE stylesheet below -->
  24. <link rel="stylesheet" href="css/theme-metallic.css">
  25. <link rel="stylesheet" href="css/theme-minimalist-round.css">
  26. <link rel="stylesheet" href="css/theme-minimalist-square.css">
  27. <link rel="stylesheet" href="css/theme-construction.css">
  28. <link rel="stylesheet" href="css/theme-cs-portfolio.css">
  29. <!-- Older IE stylesheet, to reposition navigation arrows, added AFTER the theme stylesheet above -->
  30. <!--[if lte IE 7]>
  31. <link rel="stylesheet" href="css/anythingslider-ie.css" type="text/css" media="screen" />
  32. <![endif]-->
  33. <script>
  34. // Demo functions
  35. // **************
  36. $(function(){
  37. // External Link with callback function
  38. $("#slide-jump").click(function(){
  39. $('#slider2').anythingSlider(4, function(slider){ /* alert('Now on page ' + slider.currentPage); */ });
  40. return false;
  41. });
  42. // External Link
  43. $("a.muppet").click(function(){
  44. $('#slider1').anythingSlider(5);
  45. $(document).scrollTop(0); // make the page scroll to the top so you can watch the video
  46. return false;
  47. });
  48. // Report Events to console & features list
  49. $('#slider1, #slider2').bind('before_initialize initialized swf_completed slideshow_start slideshow_stop slideshow_paused slideshow_unpaused slide_init slide_begin slide_complete', function(e, slider){
  50. // show object ID + event (e.g. "slider1: slide_begin")
  51. var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.currentPage;
  52. $('#status').text(txt);
  53. if (window.console && window.console.firebug){ console.debug(txt); } // added window.console.firebug to make this work in Opera
  54. });
  55. // Theme Selector (This is really for demo purposes only)
  56. var themes = ['minimalist-round','minimalist-square','metallic','construction','cs-portfolio'];
  57. $('#currentTheme').change(function(){
  58. var theme = $(this).val();
  59. $('#slider1').closest('div.anythingSlider')
  60. .removeClass( $.map(themes, function(t){ return 'anythingSlider-' + t; }).join(' ') )
  61. .addClass('anythingSlider-' + theme);
  62. $('#slider1').anythingSlider(); // update slider - needed to fix navigation tabs
  63. });
  64. // Add a slide
  65. var imageNumber = 1;
  66. $('button.add').click(function(){
  67. $('#slider1')
  68. .append('<li><img src="demos/images/slide-tele-' + (++imageNumber%2 + 1) + '.jpg" alt="" /></li>')
  69. .anythingSlider(); // update the slider
  70. });
  71. $('button.remove').click(function(){
  72. $('#slider1 > li:not(.cloned):last').remove();
  73. $('#slider1').anythingSlider(); // update the slider
  74. });
  75. });
  76. </script>
  77. <script>
  78. // Set up Sliders
  79. // **************
  80. $(function(){
  81. $('#slider1').anythingSlider({
  82. theme : 'metallic',
  83. easing : 'easeInOutBack',
  84. onSlideComplete : function(slider){
  85. // alert('Welcome to Slide #' + slider.currentPage);
  86. }
  87. });
  88. $('#slider2').anythingSlider({
  89. resizeContents : false, // If true, solitary images/objects in the panel will expand to fit the viewport
  90. navigationSize : 3, // Set this to the maximum number of visible navigation tabs; false to disable
  91. navigationFormatter : function(index, panel){ // Format navigation labels with text
  92. return ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'][index - 1];
  93. },
  94. onSlideComplete: function(slider) {
  95. // keep the current navigation tab in view
  96. slider.navWindow( slider.currentPage );
  97. },
  98. });
  99. });
  100. </script>
  101. </head>
  102. <body id="main">
  103. <div id="page-wrap">
  104. <div id="nav">
  105. <a class="current" href="index.html">Main Demo</a>
  106. <a href="simple.html">Simple Demo</a>
  107. <a href="expand.html">Expand Demo</a>
  108. <a href="video.html">Video Demo</a>
  109. <a href="demos.html">FX Demos</a>
  110. <a class="play" href="http://jsfiddle.net/Mottie/VM8XG/">Playground</a>
  111. <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
  112. <a class="git" href="http://github.com/ProLoser/AnythingSlider/downloads">Download</a>
  113. <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
  114. </div>
  115. <h5><a href="http://css-tricks.com/examples/AnythingSlider/">Original</a> By <a href="http://css-tricks.com">Chris Coyier</a>,
  116. expanded upon by <a href="https://github.com/ProLoser/AnythingSlider/wiki/Credits">many others</a></h5>
  117. <h1>AnythingSlider</h1>
  118. <div class="themeselector">
  119. Theme:
  120. <select id="currentTheme">
  121. <option value="default">Default</option>
  122. <option value="minimalist-round">Minimalist-Round</option>
  123. <option value="minimalist-square">Minimalist-Square</option>
  124. <option value="metallic" selected="selected">Metallic</option>
  125. <option value="construction">Construction</option>
  126. <option value="cs-portfolio">CS-Portfolio</option>
  127. </select>
  128. <button class="add">Add Slide</button>
  129. <button class="remove">Remove Slide</button>
  130. </div>
  131. <br><br>
  132. <!-- AnythingSlider #1 -->
  133. <ul id="slider1">
  134. <li><img src="demos/images/slide-civil-1.jpg" alt=""></li>
  135. <li><img src="demos/images/slide-env-1.jpg" alt=""></li>
  136. <li><img src="demos/images/slide-civil-2.jpg" alt=""></li>
  137. <li><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/zSgiXGELjbc&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zSgiXGELjbc&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></li>
  138. <li class="panel5">
  139. <div>
  140. <div class="textSlide">
  141. <span class="rightside"><object width="500" height="325"><param name="movie" value="http://www.youtube.com/v/2Qj8PhxSnhg&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2Qj8PhxSnhg&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="325"></embed></object></span>
  142. <h3>Other Information</h3>
  143. <br>
  144. <ul>
  145. <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla aliquet accumsan eros, et iaculis massa fringilla auctor.</li>
  146. <li>Proin a mi ante, ut lobortis risus. Sed fringilla augue sed enim faucibus eget aliquam tellus ultricies.</li>
  147. <li>Morbi a magna eu ligula scelerisque lobortis vel non nisi.</li>
  148. <li>Aliquam condimentum libero eget elit ultrices sit amet ullamcorper felis gravida.</li>
  149. </ul>
  150. </div>
  151. </div>
  152. </li>
  153. <li><img src="demos/images/slide-env-2.jpg" alt=""></li>
  154. </ul> <!-- END AnythingSlider #1 -->
  155. <br><br>
  156. <!-- AnythingSlider #2 -->
  157. <ul id="slider2">
  158. <li class="panel1">
  159. <div>
  160. <div class="textSlide">
  161. <img src="demos/images/251356.jpg" alt="tomato sandwich" style="float: right; margin: 0 0 2px 10px; width: 250px; height: 250px;" />
  162. <h3>Queenie's Killer Tomato Bagel Sandwich</h3>
  163. <h4>Ingredients</h4>
  164. <ul>
  165. <li>1 bagel, split and toasted</li>
  166. <li>2 tablespoons cream cheese</li>
  167. <li>1 roma (plum) tomatoes, thinly sliced</li>
  168. <li>salt and pepper to taste</li>
  169. <li>4 leaves fresh basil</li>
  170. </ul>
  171. </div>
  172. </div>
  173. </li>
  174. <li class="panel2">
  175. <div class="quoteSlide">
  176. <blockquote>In awe I watched the waxing moon ride across the zenith of the heavens like an ambered chariot towards the ebon void of infinite space wherein the tethered belts of Jupiter and Mars hang forever festooned in their orbital majesty. And as I looked at all this I thought... I must put a roof on this lavatory.<br>-- Les Dawson</blockquote>
  177. </div>
  178. </li>
  179. <li class="panel3">
  180. <img src="demos/images/slide-tele-1.jpg" alt="">
  181. </li>
  182. <li class="panel4">
  183. <div class="quoteSlide">
  184. <blockquote>Life is conversational. Web design should be the same way. On the web, you&#8217;re talking to someone you&#8217;ve probably never met – so it&#8217;s important to be clear and precise. Thus, well structured navigation and content organization goes hand in hand with having a good conversation.</blockquote>
  185. <p> - <a id='perma' href='http://quotesondesign.com/chikezie-ejiasi/'>Chikezie Ejiasi</a></p>
  186. </div>
  187. </li>
  188. <li class="panel5">
  189. <img src="demos/images/slide-tele-2.jpg" alt="">
  190. </li>
  191. </ul>
  192. <!-- END AnythingSlider #2 -->
  193. <br>
  194. <h2>Features</h2>
  195. <ul>
  196. <li>Panels are HTML Content (can be anything).</li>
  197. <li>Multiple AnythingSliders allowable per-page.</li>
  198. <li>Add or remove content, then easily update the slider.</li>
  199. <li>Themes can be applied to individual sliders.</li>
  200. <li>Infinite/Continuous sliding (always slides in the direction you are going, even at "last" slide). This can be disabled.</li>
  201. <li>Show multiple slides within AnythingSlider at once. <span class="attention">*New in version 1.5.14*</span></li>
  202. <li>Expand the slider to fit inside of its container (so it now works with full width or any percentage width fluid layouts). <span class="attention">*New in version 1.5.16*</span></li>
  203. <li>Optionally resize each panel (specified per panel in css).</li>
  204. <li>Optional Next / Previous Panel Arrows.</li>
  205. <li>Use keyboard navigation or tabs that are built and added dynamically (any number of panels).</li>
  206. <li>Link to specific slides or go forward or back one slide from static text links - go to <a href="#" id="slide-jump">Slide 4</a> (Quote #2) in second example.</li>
  207. <li>Each panel has a hashtag (can link directly to specific panels) or use the ID of an element inside the panel.</li>
  208. <li>Optional custom function for <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-Options">formatting navigation text</a>.</li>
  209. <li>Auto-playing slideshow (optional feature, can start playing or stopped).</li>
  210. <li>Pauses slideshow on hover (optional).</li>
  211. <li>Optionally play the slideshow once through, stopping on the last page.</li>
  212. <li>Extend the script by binding to custom events, last triggered event: <span id="status">none</span></li>
  213. <li>Optional FX extension to add animation to panels elements as they scroll into and out of view. See the <a href="demos.html">demo page</a>.</li>
  214. <li>Optional Video extension allows video to pauses playing when not in view and resumes when in view (if files are hosted on the web). This currently works for YouTube, Vimeo and HTML5 video. <span class="attention">*New in version 1.6*</span></li>
  215. <li>Works with jQuery 1.4.2+.</li>
  216. </ul>
  217. <h2>Default Options</h2>
  218. See the documentation for complete description of these options (<a href="https://github.com/ProLoser/AnythingSlider/wiki/Appearance-Options">appearance</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-Options">navigation</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Slideshow-Options">slideshow</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Callbacks-and-Events">callbacks &amp; events</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Video">video</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Interactivity-and-Miscellaneous-Options">interativity &amp; misc</a>).<br>
  219. <br>
  220. <blockquote>
  221. <pre>$('#slider').anythingSlider({
  222. // Appearance
  223. theme : "default", // Theme name
  224. expand : false, // If true, the entire slider will expand to fit the parent element
  225. resizeContents : true, // If true, solitary images/objects in the panel will expand to fit the viewport
  226. vertical : false, // If true, all panels will slide vertically; they slide horizontally otherwise
  227. showMultiple : false, // Set this value to a number and it will show that many slides at once
  228. easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin or jQuery UI
  229. buildArrows : true, // If true, builds the forwards and backwards buttons
  230. buildNavigation : true, // If true, builds a list of anchor links to link to each panel
  231. buildStartStop : true, // If true, builds the start/stop button
  232. appendForwardTo : null, // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
  233. appendBackTo : null, // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
  234. appendControlsTo : null, // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null
  235. appendNavigationTo : null, // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null
  236. appendStartStopTo : null, // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null
  237. toggleArrows : false, // If true, side navigation arrows will slide out on hovering & hide @ other times
  238. toggleControls : false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
  239. startText : "Start", // Start button text
  240. stopText : "Stop", // Stop button text
  241. forwardText : "&amp;raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
  242. backText : "&amp;laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
  243. tooltipClass : "tooltip", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
  244. // Function
  245. enableArrows : true, // if false, arrows will be visible, but not clickable.
  246. enableNavigation : true, // if false, navigation links will still be visible, but not clickable.
  247. enableStartStop : true, // if false, the play/stop button will still be visible, but not clickable. Previously "enablePlay"
  248. enableKeyboard : true, // if false, keyboard arrow keys will not work for this slider.
  249. // Navigation
  250. startPanel : 1, // This sets the initial panel
  251. changeBy : 1, // Amount to go forward or back when changing panels.
  252. hashTags : true, // Should links change the hashtag in the URL?
  253. infiniteSlides : true, // if false, the slider will not wrap & not clone any panels
  254. navigationFormatter : null, // Details at the top of the file on this use (advanced use)
  255. navigationSize : false, // Set this to the maximum number of visible navigation tabs; false to disable
  256. // Slideshow options
  257. autoPlay : false, // If true, the slideshow will start running; replaces "startStopped" option
  258. autoPlayLocked : false, // If true, user changing slides will not stop the slideshow
  259. autoPlayDelayed : false, // If true, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts
  260. pauseOnHover : true, // If true & the slideshow is active, the slideshow will pause on hover
  261. stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.
  262. playRtl : false, // If true, the slideshow will move right-to-left
  263. // Times
  264. delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)
  265. resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
  266. animationTime : 600, // How long the slideshow transition takes (in milliseconds)
  267. delayBeforeAnimate : 0, // How long to pause slide animation before going to the desired slide (used if you want your "out" FX to show).
  268. // Callbacks
  269. onBeforeInitialize : function(e, slider) {}, // Callback before the plugin initializes
  270. onInitialized : function(e, slider) {}, // Callback when the plugin finished initializing
  271. onShowStart : function(e, slider) {}, // Callback on slideshow start
  272. onShowStop : function(e, slider) {}, // Callback after slideshow stops
  273. onShowPause : function(e, slider) {}, // Callback when slideshow pauses
  274. onShowUnpause : function(e, slider) {}, // Callback when slideshow unpauses - may not trigger properly if user clicks on any controls
  275. onSlideInit : function(e, slider) {}, // Callback when slide initiates, before control animation
  276. onSlideBegin : function(e, slider) {}, // Callback before slide animates
  277. onSlideComplete : function(slider) {}, // Callback when slide completes; this is the only callback without an event "e" variable
  278. // Interactivity
  279. clickForwardArrow : "click", // Event used to activate forward arrow functionality (e.g. add jQuery mobile's "swiperight")
  280. clickBackArrow : "click", // Event used to activate back arrow functionality (e.g. add jQuery mobile's "swipeleft")
  281. clickControls : "click focusin", // Events used to activate navigation control functionality
  282. clickSlideshow : "click", // Event used to activate slideshow play/stop button
  283. // Video
  284. resumeOnVideoEnd : true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete
  285. addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
  286. isVideoPlaying : function(base){ return false; } // return true if video is playing or false if not - used by video extension
  287. });</pre>
  288. </blockquote>
  289. <h2>Known Issues</h2>
  290. <ul>
  291. <li>Please refer to the <a href="https://github.com/ProLoser/AnythingSlider/wiki">documentation</a>.</li>
  292. </ul>
  293. <h2>Changelog</h2>
  294. Only the latest versions will be shown here. See the <a href="https://github.com/ProLoser/AnythingSlider/wiki/Change-Log">full change log here</a>.<br>
  295. <br>
  296. <h3>Version 1.7.16</h3>
  297. <ul>
  298. <li>Ok, I didn't like changing the video option as it was below, so I moved the option into the core plugin. The option is now called <code>resumeOnVisible</code>.</li>
  299. </ul>
  300. <h3>Version 1.7.15.1</h3>
  301. <ul>
  302. <li>Fixed an issue in the video extension where watching a related YouTube video in the slider would cause javascript errors.</li>
  303. <li>Added another known issue with the video extension - Watching a related video breaks the ability if the slider to continue playing and pause the slideshow while playing these videos. This is because the iframe does not update the video URL and there is no way, that I know of, of determining which iframe is reporting a status change.</li>
  304. <li>Added a video option named <code>resumeVideo</code> which when false, does not continue playing a paused video. Change this option as follows (inside of a document ready call and before the slider is initialized):
  305. <pre><code>$.anythingSliderVideoDefaults.resumeVideo = false;</code></pre>
  306. </li>
  307. </ul>
  308. <h3>Version 1.7.15</h3>
  309. <ul>
  310. <li>Fix an issue with calling the navigation window function which isn't initialized when the number of tabs shown equals the `navigationSize` value. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/209">issue #209</a>.</li>
  311. </ul>
  312. <h3>Version 1.7.14</h3>
  313. <ul>
  314. <li>Attempted to fix an issue with adding slider content based on the error reported in <a href="https://github.com/ProLoser/AnythingSlider/issues/207">issue #207</a>.</li>
  315. <li>Links in nested sliders should now work properly. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/208">issue #208</a>.</li>
  316. <li>Changed YouTube video status updating, to hopefully fix <a href="https://github.com/ProLoser/AnythingSlider/issues/191">issue #191</a>. But I noticed a few other problems in Safari, so I will address those soon.</li>
  317. <li>Fixed a problem with setting the slider height if it was undefined, or set before the image completely loaded. This was introduced in v1.7.13.</li>
  318. </ul>
  319. <h3>Version 1.7.13</h3>
  320. <ul>
  321. <li>Updated the plugin so that if panel sizes aren't defined in the css, it will default to the slider size. This should fix the problem with the slider initializing with a zero width or height.</li>
  322. <li>Added a "targetPage" callback variable which contains the targeted page number; "$targetPage" still contains the jQuery object of the targeted page. This can be used in event or callbacks:
  323. <pre><code>$('#slider').bind('slide_begin', function(event, slider){
  324. console.debug( 'The target page is #' + slider.targetPage );
  325. console.debug( 'The title of the target page is: ' + slider.$targetPage.find('h1').text() );
  326. // Do something else
  327. });</code></pre>Note that the targetPage variable contains the correct page before the slider animates, whereas "slider.currentPage" contains the current slide and is not updated until after the animation completes. See the "<a href="https://github.com/ProLoser/AnythingSlider/wiki/Callbacks-and-Events">Callback Arguments</a>" section in the wiki documents for a full list.</li>
  328. </ul>
  329. <h3>Version 1.7.12</h3>
  330. <ul>
  331. <li>Clicking links inside of a slide when mulitple slides are showing will no longer change the slider. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/187">issue #187</a>.</li>
  332. <li>Updated how the navigation width was calculated when <code>navigationSize</code> is set so the <a href="https://github.com/Mottie/AnythingSlider-Themes">new tabs-light and tabs-dark themes</a> tab widths are calculated a bit more accurately - but it's still not perfect.</li>
  333. </ul>
  334. <h3>Version 1.7.11.5</h3>
  335. <ul>
  336. <li>Updated the AnythingSlider css file to restore the overflow setting after the slider has initialized. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/183">issue #183</a>. Thanks sawmac!</li>
  337. <li>This fixes a problem created in the previous update.</li>
  338. </ul>
  339. <h3>Version 1.7.11.4</h3>
  340. <ul>
  341. <li>Updated the AnythingSlider css file to include the flash of unstyled content (FOUC) method 1 from the <a href="https://github.com/ProLoser/AnythingSlider/wiki/FAQ">FAQ page</a></li>
  342. </ul>
  343. <h3>Version 1.7.11.3</h3>
  344. <ul>
  345. <li>Updated the FX extension
  346. <ul>
  347. <li>When the <code>animationTime</code> is set to zero, the "fade" out effect occurred immediately. The fx extension has been updated to use the default time instead.</li>
  348. <li>Updated the <a href="http://jsfiddle.net/Mottie/Cm479/2144/">fade FX demo</a> to use <code>delayBeforeAnimate</code> to allow the current image to fade out before transitioning.</li>
  349. </ul>
  350. </li>
  351. </ul>
  352. <h3>Version 1.7.11.2</h3>
  353. <ul>
  354. <li>Added a local copy of jQuery with fallback.</li>
  355. </ul>
  356. <h3>Version 1.7.11.1</h3>
  357. <ul>
  358. <li>Fixed a problem with the "fade" fx. See <a href="https://github.com/ProLoser/AnythingSlider/issues/171">issue #171</a>.
  359. <ul>
  360. <li>In older versions, the size parameter was ignored; but with the changes in 1.7.11, it became required and now follows the same format as all of the other effects.</li>
  361. <li>The value is actually an opacity to use and must be included if adding a time or easing effect.
  362. <pre><code>// '.selector' : [ 'fade', 'opacity', 'time', 'easing' ]
  363. '.selector' : [ 'fade', '', 500, 'easeInOutCirc' ] // opacity number between 0 and 1 (default is 1, so using '' will set the value to 1)
  364. </code></pre>
  365. </li>
  366. </ul>
  367. </li>
  368. </ul>
  369. <h3>Version 1.7.11</h3>
  370. <ul>
  371. <li>Updated the FX extension:
  372. <ul>
  373. <li>Added <code>grow</code> option that allows for growing text - like in the movies! *popcorn*</li>
  374. <li>Allow ability to set multiple sizes for the grow and expand fx by simply separating the two values with a comma. If only one value is present, the fx will use that value (left side of the comma) as described below.
  375. <pre><code>// '.selector' : [ 'effect(s)', 'distance/size', 'time', 'easing' ]
  376. '.selector' : [ 'grow', '24px, 80px' ] // 'original text size, fx size'
  377. '.selector' : [ 'expand', '10%, 100%' ], // 'fx size, original size'</code></pre>
  378. </li>
  379. <li>The difference between grow and expand is that grow changes the font size whereas expand changes the width and height.</li>
  380. <li>Added ability to set the <code>fade</code> ending opacity.
  381. <pre><code>// '.selector' : [ 'effect(s)', 'distance/size', 'time', 'easing' ]
  382. '.selector' : [ 'fade', '0.8' ] // opacity number between 0 and 1
  383. </code></pre>
  384. </li>
  385. <li>Changed the intro fx from being initialized immediately to occurring when the page has finished loading.</li>
  386. </ul>
  387. </li>
  388. <li>Fixed a problem that occurs when <code>resizeContents</code> is false and the slide content has padding and/or margins.</li>
  389. </ul>
  390. <h3>Version 1.7.10</h3>
  391. <ul>
  392. <li>Fixed a problem where setting the <code>animationTime</code> to zero would not trigger any callbacks, thus preventing the FX extension from working.</li>
  393. </ul>
  394. <h3>Version 1.7.9</h3>
  395. <ul>
  396. <li>Added <code>vertical</code> option
  397. <ul>
  398. <li>When true, all of the content in the slider will scroll vertically.</li>
  399. <li>Included up &amp; down keyboard keys to navigate, but only when the vertical option is true.</li>
  400. <li>The <code>showMultiple</code> option does not currently work when the content is vertical. I may fix this in future versions.</li>
  401. <li>Thanks to Caroline-Elisa for the suggestion - in <a href="https://github.com/ProLoser/AnythingSlider/issues/166">issue #166</a>.</li>
  402. </ul>
  403. </li>
  404. <li>AnythingSlider will now accept an ID or classname to target a specific panel in the slider. Callbacks can also be included. Here is an example:
  405. <pre><code>// original method
  406. $('#slider').anythingSlider(4);
  407. // additional method
  408. $('#slider').anythingSlider('#quotes');</code></pre>
  409. </li>
  410. <li>Updated FX extension
  411. <ul>
  412. <li>Fixed a problem with the "expand" effect in the FX extension where the height would not change in some browsers.</li>
  413. <li>Added <code>outFxBind</code> and <code>inFxBind</code> options which set which AnythingSlider callbacks are used. This might be more useful if binding FX on slide begin so the element is already animating when the slide comes into view.</li>
  414. </ul>
  415. </li>
  416. </ul>
  417. </div>
  418. </body>
  419. </html>