{"id":465,"date":"2020-09-02T10:19:38","date_gmt":"2020-09-02T10:19:38","guid":{"rendered":"https:\/\/dentalia.orionthemes.com\/documentation\/?page_id=465"},"modified":"2021-01-06T10:18:10","modified_gmt":"2021-01-06T10:18:10","slug":"before-after-slider","status":"publish","type":"page","link":"https:\/\/dentalia.orionthemes.com\/documentation\/widgets\/before-after-slider\/","title":{"rendered":"Before\/After Slider"},"content":{"rendered":"<div id=\"pl-465\"  class=\"panel-layout\" ><div id=\"pg-465-0\"  class=\"panel-grid panel-has-style\" ><div class=\"siteorigin-panels-stretch divider-no-animation tablet-1-in-row mobile-default desktop-default bg-altsitebg panel-row-style panel-row-style-for-465-0\" data-stretch-type=\"full\" ><div id=\"pgc-465-0-0\"  class=\"panel-grid-cell panel-grid-cell-empty\" ><\/div><div id=\"pgc-465-0-1\"  class=\"panel-grid-cell panel-grid-cell-mobile-last\" ><div id=\"panel-465-0-1-0\" class=\"so-panel widget widget_orion_heading_w panel-first-child\" data-index=\"0\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-0-1-0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_heading_w so-widget-orion_heading_w-base\"\n\t\t\t\n\t\t> \r\n\t\t\t<div class=\"row orion-heading\" style=\"margin-bottom:6px;\">\r\n\t\t<div class=\"col-md-12   text-center style-display-2 style-primary-color\">\r\n\t\t\t<h1 class=\"primary-color text-uppercase display-2\">\r\n\t\t\t\tBefore\/After Slider\t\t\t<\/h1>\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<\/div><\/div><\/div><div id=\"panel-465-0-1-1\" class=\"so-panel widget widget_sow-editor panel-last-child\" data-index=\"1\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-0-1-1\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<p class=\"lead\" style=\"text-align: center;\">The widget takes two images and compares them by moving the borderline that gradually hides one image and shows the other.<\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><div id=\"pgc-465-0-2\"  class=\"panel-grid-cell panel-grid-cell-empty\" ><\/div><\/div><\/div><div id=\"pg-465-1\"  class=\"panel-grid panel-has-style\" ><div class=\"siteorigin-panels-stretch divider-no-animation tablet-1-in-row mobile-1-in-row desktop-default clear panel-row-style panel-row-style-for-465-1\" data-stretch-type=\"full\" ><div id=\"pgc-465-1-0\"  class=\"panel-grid-cell\" ><div class=\"clear panel-cell-style panel-cell-style-for-465-1-0\" ><div id=\"panel-465-1-0-0\" class=\"so-panel widget widget_orion_heading_w panel-first-child\" data-index=\"2\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-0-0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_heading_w so-widget-orion_heading_w-base\"\n\t\t\t\n\t\t> \r\n\t\t\t<div class=\"row orion-heading\" style=\"margin-bottom:12px;\">\r\n\t\t<div class=\"col-md-12   text-left style-h2 style-primary-color\">\r\n\t\t\t<h2 class=\"primary-color\">\r\n\t\t\t\t<span class=\"mark mark-doc\">1<\/span> Adding Images\t\t\t<\/h2>\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<\/div><\/div><\/div><div id=\"panel-465-1-0-1\" class=\"so-panel widget widget_sow-editor\" data-index=\"3\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-0-1\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<ul class=\"list-arrow lead-list\">\n<li><strong>Upload two images.<\/strong> The first will represent the \"before\" state and the second will show the \"after\" state.*<\/li>\n<li><strong>After image visibility:\u00a0<\/strong>Shows how much of the \"after\" image will be visible before you start moving the borderline between the two images.<\/li>\n<li>Optionally you can insert \"<strong>Before text<\/strong>\" and \"<strong>After text<\/strong>\" to be shown on the images. (Dentalia 2.0+)<\/li>\n<li><strong>Orientation:\u00a0<\/strong>Sets whether the borderline moves vertically or horizontally.<\/li>\n<\/ul>\n<\/div>\n<\/div><\/div><\/div><div id=\"panel-465-1-0-2\" class=\"so-panel widget widget_sow-editor\" data-index=\"4\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-0-2\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<div class=\"alert alert-danger\" role=\"alert\">*Both images should have <strong>identical widths and heights<\/strong>.<\/div>\n<\/div>\n<\/div><\/div><\/div><div id=\"panel-465-1-0-3\" class=\"so-panel widget widget_orion_dividers_w\" data-index=\"5\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-0-3\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_dividers_w so-widget-orion_dividers_w-base\"\n\t\t\t\n\t\t>\t<hr style=\"border-top-width:2px; border-top-color:rgba(0,0,0,0.05); border-style: dashed; width: 100%;  margin-top:11px; margin-bottom:47px;\"><\/div><\/div><\/div><div id=\"panel-465-1-0-4\" class=\"so-panel widget widget_orion_heading_w\" data-index=\"6\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-0-4\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_heading_w so-widget-orion_heading_w-base\"\n\t\t\t\n\t\t> \r\n\t\t\t<div class=\"row orion-heading\" style=\"margin-bottom:12px;\">\r\n\t\t<div class=\"col-md-12   text-left style-h2 style-primary-color\">\r\n\t\t\t<h2 class=\"primary-color\">\r\n\t\t\t\t<span class=\"mark mark-doc\">2<\/span> Style Settings\t\t\t<\/h2>\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<\/div><\/div><\/div><div id=\"panel-465-1-0-5\" class=\"so-panel widget widget_sow-editor panel-last-child\" data-index=\"7\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-0-5\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<ul class=\"list-arrow lead-list\">\n<li><strong>Image style <\/strong>(Dentalia 2.0+): With this option, you can add shadow or a frame to the image.<\/li>\n<li><strong>Image overlay:<\/strong> This is the state (color\/brightness) of the images before hovering over them.<\/li>\n<li><strong>Image overlay on hover:<\/strong> This is the state (color\/brightness) of the images while hovering over them.<\/li>\n<\/ul>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div><div id=\"pgc-465-1-1\"  class=\"panel-grid-cell\" ><div id=\"panel-465-1-1-0\" class=\"so-panel widget widget_orion_image_w panel-first-child panel-last-child\" data-index=\"8\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-1-1-0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_image_w so-widget-orion_image_w-base\"\n\t\t\t\n\t\t>\r\n<div class=\"image-w relative  img-frame shadow-4\">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<a rel=\"orion-images\" class=\" overlay-none overlay-hover-none\" href=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-beforeafter-widget.jpg\" title=\"\" data-caption=\"\" data-fancybox=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-beforeafter-widget.jpg\">\r\n\t\t\r\n\t\t\t\t\t<img width=\"960\" height=\"960\" src=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-beforeafter-widget.jpg\" class=\"attachment- size-\" alt=\"\" loading=\"lazy\" \/>\t\t\t<div class=\"overlay\"><\/div>\r\n\t\t\r\n\t\t\t\t\t<\/a>\r\n\t\t\t\r\n\t\r\n\t<div class=\"absolute\">\r\n\t\t<div class=\"hover-desc table-wrap\">\r\n\t\t\t<div class=\"cell-wrap\">\r\n\t\t\t\t<h4 class=\"text-light\"><\/h4>\r\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\t<\/div>\t\t\t\t\t\r\n<\/div>\r\n\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div id=\"pg-465-2\"  class=\"panel-grid panel-has-style\" ><div class=\"siteorigin-panels-stretch divider-no-animation tablet-default mobile-default desktop-default bg-altsitebg panel-row-style panel-row-style-for-465-2\" data-stretch-type=\"full\" ><div id=\"pgc-465-2-0\"  class=\"panel-grid-cell\" ><div id=\"panel-465-2-0-0\" class=\"so-panel widget widget_orion_heading_w panel-first-child\" data-index=\"9\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-2-0-0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_heading_w so-widget-orion_heading_w-base\"\n\t\t\t\n\t\t> \r\n\t\t\t<div class=\"row orion-heading\" style=\"margin-bottom:24px;\">\r\n\t\t<div class=\"col-md-12   text-center style-display-3 style-text-default\">\r\n\t\t\t<h3 class=\"text-default text-uppercase display-3\">\r\n\t\t\t\tExample A (default)\t\t\t<\/h3>\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<\/div><\/div><\/div><div id=\"panel-465-2-0-1\" class=\"so-panel widget widget_orion_before_after_w panel-last-child\" data-index=\"10\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-2-0-1\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_before_after_w so-widget-orion_before_after_w-base\"\n\t\t\t\n\t\t>\t<div class=\"twentytwenty-container orion-before-after overlay-none overlay-hover-none handle-transparent\" id=\"ba_6a8a22762eed0\">\r\n\t\t\t<img src=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-content-1140x760-whitening-before.jpg\" \r\n\t\t\tclass=\"before\" \r\n\t\t\t\t\t\t\/>\t\r\n\t\t\t\t\t\t<div class=\"twentytwenty-before before-text wrap absolute\">\r\n\t\t\t\t<span class=\"bg-c1 font-3\">\r\n\t\t\t\tBefore\t\t\t\t<\/span>\r\n\t\t\t<\/div>\r\n\t\t\t\t\t\t<img src=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-content-1140x760-whitening-after.jpg\" class=\"after\" \r\n\t\t\t\t\t\t\/>\r\n\t\t\t\t\t\t<div class=\"twentytwenty-after after-text wrap absolute\">\r\n\t\t\t\t<span class=\"bg-c1 font-3\">\r\n\t\t\t\tAfter\t\t\t\t<\/span>\r\n\t\t\t<\/div>\r\n\t\t\t\t\t\r\n\t\t<div class=\"overlay\"><\/div>\r\n\t<\/div>\r\n\r\n\t<script>\r\n\tjQuery(window).on('load',function(){\r\n\t\tjQuery(\"#ba_6a8a22762eed0\").twentytwenty({\r\n\t\t\tdefault_offset_pct: 0.5, \r\n\t\t\torientation: 'horizontal', \r\n\t\t});\r\n\t});\r\n\t<\/script> <\/div><\/div><\/div><\/div><div id=\"pgc-465-2-1\"  class=\"panel-grid-cell\" ><div id=\"panel-465-2-1-0\" class=\"so-panel widget widget_orion_heading_w panel-first-child\" data-index=\"11\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-2-1-0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_heading_w so-widget-orion_heading_w-base\"\n\t\t\t\n\t\t> \r\n\t\t\t<div class=\"row orion-heading\" style=\"margin-bottom:24px;\">\r\n\t\t<div class=\"col-md-12   text-center style-display-3 style-text-default\">\r\n\t\t\t<h3 class=\"text-default text-uppercase display-3\">\r\n\t\t\t\tExample B (customized)\t\t\t<\/h3>\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<\/div><\/div><\/div><div id=\"panel-465-2-1-1\" class=\"so-panel widget widget_orion_before_after_w panel-last-child\" data-index=\"12\" ><div class=\"orion custom default panel-widget-style panel-widget-style-for-465-2-1-1\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-orion_before_after_w so-widget-orion_before_after_w-base\"\n\t\t\t\n\t\t>\t<div class=\"wrapper img-frame shadow-4\">\t\t\t\r\n\t<div class=\"twentytwenty-container orion-before-after overlay-tertiary overlay-hover-none handle-c-1\" id=\"ba_6a8a22762f143\">\r\n\t\t\t<img src=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-content-1140x760-whitening-before.jpg\" \r\n\t\t\tclass=\"before\" \r\n\t\t\t\t\t\t\/>\t\r\n\t\t\t\t\t\t<div class=\"twentytwenty-before before-text wrap absolute\">\r\n\t\t\t\t<span class=\"bg-c1 font-3\">\r\n\t\t\t\tBefore\t\t\t\t<\/span>\r\n\t\t\t<\/div>\r\n\t\t\t\t\t\t<img src=\"https:\/\/dentalia.orionthemes.com\/documentation\/wp-content\/uploads\/2020\/09\/dentalia-content-1140x760-whitening-after.jpg\" class=\"after\" \r\n\t\t\t\t\t\t\/>\r\n\t\t\t\t\t\t<div class=\"twentytwenty-after after-text wrap absolute\">\r\n\t\t\t\t<span class=\"bg-c1 font-3\">\r\n\t\t\t\tAfter\t\t\t\t<\/span>\r\n\t\t\t<\/div>\r\n\t\t\t\t\t\r\n\t\t<div class=\"overlay\"><\/div>\r\n\t<\/div>\r\n\t<\/div>\r\n\r\n\t<script>\r\n\tjQuery(window).on('load',function(){\r\n\t\tjQuery(\"#ba_6a8a22762f143\").twentytwenty({\r\n\t\t\tdefault_offset_pct: 0.5, \r\n\t\t\torientation: 'vertical', \r\n\t\t});\r\n\t});\r\n\t<\/script> <\/div><\/div><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>The widget takes two images and compares them by moving the borderline that gradually hides one image and shows the other. Upload two images. The first will represent the &#8220;before&#8221; state and the second will show the &#8220;after&#8221; state.* After image visibility:\u00a0Shows how much of the &#8220;after&#8221; image will be visible before you start moving<\/p>\n","protected":false},"author":1,"featured_media":2835,"parent":984,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/pages\/465"}],"collection":[{"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":23,"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/pages\/465\/revisions"}],"predecessor-version":[{"id":2901,"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/pages\/465\/revisions\/2901"}],"up":[{"embeddable":true,"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/pages\/984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/media\/2835"}],"wp:attachment":[{"href":"https:\/\/dentalia.orionthemes.com\/documentation\/wp-json\/wp\/v2\/media?parent=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}