{"id":1752,"date":"2010-11-15T10:24:58","date_gmt":"2010-11-15T10:24:58","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/jquery\/slider\/article12.html"},"modified":"2020-02-03T03:35:32","modified_gmt":"2020-02-03T08:35:32","slug":"cross-fading-slider","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cross-fading-slider.html","title":{"rendered":"&#8220;Cross-Fading&#8221; Slider"},"content":{"rendered":"This is a Slider Script that uses cross-fading effect for slide change transition effects. <br \/> <br \/> <span style=\"font-weight: bold;\">JavaScript<\/span> <br \/>In order to make the script work, the <span style=\"font-weight: bold;\">index-#.html<\/span> file with a slider should contain these line of HTML code in order to include the <span style=\"font-weight: bold;\">jquery00.js<\/span> script that includes jQuery framework: <br \/> <p>The gallery initialization is placed to the end of HTML coding (just before <span style=\"font-weight: bold;\">&lt;\/body&gt;<\/span> closing tag) and contains all the necessary configuration values.<\/p> <br \/> <p> <span style=\"font-weight: bold;\">effect<\/span> attribute defines slide transition effect:<\/p> <p>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">default<\/span> &ndash; no transition effect, just switch the image; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">fade<\/span> &ndash; fade effect; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">slide<\/span> &ndash; slides are shifting down.<\/p> <p> <span style=\"font-weight: bold;\">fadeOutSpeed<\/span> attribute defines slide transition speed:<\/p> <p>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">default<\/span> &ndash; 4 seconds; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">fast<\/span> &ndash; 8 seconds; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">slow<\/span> &ndash; 2 seconds.<\/p> <p> <span style=\"font-weight: bold;\">rotate<\/span> attribute defines slide rotation:<\/p> <p>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">true<\/span> &ndash; slides are showing continuously; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">false<\/span> &ndash; each slide is shown only once.<\/p> <p> <span style=\"font-weight: bold;\">HTML<\/span> <br \/>Below you can see the HTML script representation: <br \/><\/p> <p>Make sure that the number of navigation buttons (<span style=\"font-weight: bold;\">&lt;a&gt;<\/span> tags inside the <span style=\"font-weight: bold;\">&lt;div&gt;<\/span> tag with <span style=\"font-weight: bold;\">.tabs<\/span> style) should be equal to the number of slides.<\/p> <p> <span style=\"font-weight: bold;\">CSS<\/span> <br \/>You can find script related stylesheet in the main <span style=\"font-weight: bold;\">style.css<\/span> file. You will need to modify the following styles:<\/p>","protected":false},"excerpt":{"rendered":"<p>This is a Slider Script that uses cross-fading effect for slide change transition effects. JavaScript In order to make the script work, the index-#.html file with a slider should contain these line of HTML code in order to include the jquery00.js script that includes jQuery framework: The gallery initialization is placed to the end of [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[262],"tags":[813,816],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1752"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1752"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1752\/revisions"}],"predecessor-version":[{"id":86205,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1752\/revisions\/86205"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}