{"id":3964,"date":"2020-02-14T03:51:00","date_gmt":"2020-02-14T03:51:00","guid":{"rendered":"https:\/\/azoora.com\/blog\/?p=3964"},"modified":"2020-03-10T04:06:52","modified_gmt":"2020-03-10T04:06:52","slug":"before-after-comparison-slider-with-touch-support","status":"publish","type":"post","link":"https:\/\/azoora.com\/blog\/code\/before-after-comparison-slider-with-touch-support\/","title":{"rendered":"Before After Comparison Slider With Touch Support"},"content":{"rendered":"\n<p>A Vanilla JavaScript mobile-friendly before\/after comparison slider to view the difference between two images with mouse move and touch swipe events.<\/p>\n\n\n\n<!--more-->\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Author<\/strong>:  <a href=\"https:\/\/github.com\/amirhosseinrahmati\">amirhosseinrahmati<\/a><\/p><p><strong>Official Page<\/strong>: <a href=\"https:\/\/github.com\/amirhosseinrahmati\/before-after-comparison-slider\">GitHub<\/a><\/p><p><strong>Demo<\/strong>: <a href=\"https:\/\/www.cssscript.com\/demo\/before-after-comparison-slider-touch\/\">Link<\/a><\/p><p><strong>Download<\/strong>: <a href=\"https:\/\/github.com\/amirhosseinrahmati\/before-after-comparison-slider\/archive\/master.zip\">Link<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A Vanilla JavaScript mobile-friendly before\/after comparison slider to view the difference between two images with mouse move and touch swipe events.<\/p>\n","protected":false},"author":2,"featured_media":3965,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[4,145,12],"tags":[25,146,87],"jetpack_featured_media_url":"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/03\/Before-After-Touch-Compatible-Comparison-Slider.png","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p7FQPL-11W","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/3964"}],"collection":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/comments?post=3964"}],"version-history":[{"count":1,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/3964\/revisions"}],"predecessor-version":[{"id":3966,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/3964\/revisions\/3966"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media\/3965"}],"wp:attachment":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media?parent=3964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/categories?post=3964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/tags?post=3964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}