{"id":8639,"date":"2018-01-06T11:42:02","date_gmt":"2018-01-06T11:42:02","guid":{"rendered":"http:\/\/rifetheme.com\/help\/docs\/content-management\/shortcodes\/scroller\/"},"modified":"2018-10-31T14:14:26","modified_gmt":"2018-10-31T14:14:26","slug":"scroller","status":"publish","type":"docs","link":"https:\/\/rifetheme.com\/help\/docs\/content-management\/shortcodes\/scroller\/","title":{"rendered":"Scroller"},"content":{"rendered":"<h2>Available as Elementor widget!<\/h2>\n<p>Since <strong>Rife theme<\/strong> in <strong>version 2.1.0<\/strong> it is available as <a href=\"https:\/\/rifetheme.com\/help\/docs\/content-management\/elementor-widgets\/\">Elementor widget<\/a>.<\/p>\n<h2>What is it for<\/h2>\n<p>Scroller shortcode can be used to display photos(<strong>only<\/strong>) in our theme scroller that is mostly known from usage in our albums. With this shortcode you can display it on any page or post that you like.<\/p>\n<p>It works only with <strong>Rife Pro<\/strong>.<\/p>\n<p>You can check <a href=\"http:\/\/rifetheme.com\/horizon\/\">example use here<\/a>.<\/p>\n<h2>What is needed for it<\/h2>\n<p>To use it you need to create album or work and <a href=\"http:\/\/rifetheme.com\/help\/docs\/content-management\/albums-works-post-types\/album-media\/\">add media to it<\/a>. When you have such album\/work prepared then you can use shortcode to be display it where you want.<\/p>\n<p>Scroller done with shortcode will inherit most settings from his &#8220;parent&#8221; album\/work. Other can be overwritten by shortcode parameters.<\/p>\n<h2>Shortcode and its parameters<\/h2>\n<p>First lets see some examples:<\/p>\n<pre>&lbrack;a13fe-scroller id=\"8792\" autoplay=\"0\" texts=\"0\" socials=\"0\" ratio=\"4\/1\" effect=\"blur\" parallax=\"0\"]\r\n&lbrack;a13fe-scroller id=\"5985\" autoplay=\"1\" window_high=\"1\" texts=\"1\" parallax=\"1\"]<\/pre>\n<p>So shortcode is named <code>a13fe-scroller<\/code> and it has following parameters that you can use:<\/p>\n<ul>\n<li><strong>id<\/strong> &#8211; (required) album\/work ID that you want to use media from\n<p><figure id=\"attachment_8919\" class=\"thumbnail wp-caption alignnone\" style=\"width: 853px\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8919\" src=\"http:\/\/rifetheme.com\/wp-content\/uploads\/2018\/01\/albumId.jpg\" alt=\"Where to find ID of post\" width=\"843\" height=\"396\" srcset=\"https:\/\/rifetheme.com\/wp-content\/uploads\/2018\/01\/albumId.jpg 843w, https:\/\/rifetheme.com\/wp-content\/uploads\/2018\/01\/albumId-300x141.jpg 300w, https:\/\/rifetheme.com\/wp-content\/uploads\/2018\/01\/albumId-768x361.jpg 768w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><figcaption class=\"caption wp-caption-text\">Where to find ID of post<\/figcaption><\/figure><\/li>\n<li><strong>autoplay<\/strong> &#8211; (default <em>to value from parent album\/work<\/em>) should scroller autoplay on load. <em>0<\/em> for no, <em>any other positive number<\/em> to set number of seconds between &#8220;scrolls&#8221;.<\/li>\n<li><strong>texts<\/strong> &#8211;\u00a0(default <em>to value from parent album\/work<\/em>) should images titles &amp; descriptions be displayed\u00a0 <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>socials<\/strong> &#8211;\u00a0(default <em>0<\/em>) should sharing icons be displayed. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>window_high<\/strong> &#8211;\u00a0(default <em>0<\/em>) should scroller be displayed in full height mode. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>ratio<\/strong> &#8211; (default <em>16\/9<\/em>) &#8211; if scroller is not used in window height mode, then in what proportion of width to height should it be displayed<strong>.<\/strong><\/li>\n<li><strong>parallax<\/strong> &#8211; (default <em>to value from parent album\/work<\/em>) should parallax effect be used in scroller. <em>1<\/em> for yes, <em>0<\/em> for no.<\/li>\n<li><strong>effect<\/strong> &#8211; (default <em>to value from parent album\/work<\/em>) should effect be used on not active photos. You can choose from these values:<em><br \/>\n<\/em><\/p>\n<ul>\n<li><em>off<\/em><\/li>\n<li><em>opacity<\/em><\/li>\n<li><em>scale-down<\/em><\/li>\n<li><em>grayscale<\/em><\/li>\n<li><em>blur<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Warning<\/h2>\n<p>Please use <strong>effects<\/strong> with caution! CSS transitions on filters(<strong>effects<\/strong>) can choke any browser. Use only on small albums(&lt;10 images). Effects are switched off for devices with resolution lower then 1024px, as they usually don&#8217;t have enough power to animate them.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8470,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_tag":[2],"class_list":["post-8639","docs","type-docs","status-publish","hentry","doc_tag-pro"],"_links":{"self":[{"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs\/8639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/comments?post=8639"}],"version-history":[{"count":10,"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs\/8639\/revisions"}],"predecessor-version":[{"id":9163,"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs\/8639\/revisions\/9163"}],"up":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs\/8470"}],"next":[{"title":"Writing effect","link":"https:\/\/rifetheme.com\/help\/docs\/content-management\/shortcodes\/writing-effect\/","href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs\/8905"}],"prev":[{"title":"Slider","link":"https:\/\/rifetheme.com\/help\/docs\/content-management\/shortcodes\/slider\/","href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/docs\/8638"}],"wp:attachment":[{"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/media?parent=8639"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rifetheme.com\/help\/wp-json\/wp\/v2\/doc_tag?post=8639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}