{"id":3535,"date":"2017-11-08T22:12:08","date_gmt":"2017-11-08T22:12:08","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=3535"},"modified":"2017-11-09T17:55:09","modified_gmt":"2017-11-09T17:55:09","slug":"swipe-to-reveal-technique","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/swipe-to-reveal-technique\/","title":{"rendered":"Swipe to Reveal Technique"},"content":{"rendered":"<p>Check out this swipe to reveal technique created by Daniel Sivan from <a href=\"https:\/\/www.wiredmessenger.com\/\" target=_new>Wired Messenger Inc<\/a>. This technique overlays a div with an image over a div container and uses left padding on the overlay div to &#8220;push&#8221; the image to the right of the container &#8211; leaving a &#8220;handle&#8221; that the user can use to drag the content into view.<\/p>\n<p><a href=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2017\/11\/swipe-to-reveal.gif.gif\"><img decoding=\"async\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2017\/11\/swipe-to-reveal.gif.gif\" alt=\"swipe-to-reveal.gif\" width=\"341\" class=\"aligncenter size-full wp-image-3529\" \/><\/a><\/p>\n<p><center><br \/>\n<a href=\"https:\/\/codepen.io\/Wiredmessenger\/pen\/yzpxRz\" rel=\"noopener\" target=\"_blank\">View in CodePen<\/a><br \/>\n<\/center><\/p>\n<p>Its a pretty simple technique and works best in mobile (works in the Gmail app as well) since the interaction is more intuitive. Although it can also be used in desktop the user would have to scroll using the scrollbar. <\/p>\n<p>Alternatively you can use media queries to display the swipe interaction in mobile and tablets and a <a href=\"https:\/\/freshinbox.com\/blog\/rollover-to-reveal-in-email\/\">hover based reveal<\/a> interaction in the desktop. <\/p>\n<p><BR><BR><\/p>\n<div style=\"padding:10px; border: 2px solid #99C731;background-color:#FFF8DC;border-radius:5px;\">\n<form action=\"https:\/\/freshinbox1.createsend.com\/t\/i\/s\/adrmi\/\" method=\"post\" id=\"subForm\">\n<span class=\"fisub_header\" style=\"font-weight:bold;\">Subscribe to the #EmailGeeks Newsletter<\/span>\n<p><input id=\"fieldEmail\" name=\"cm-adrmi-adrmi\" type=\"email\" style=\"width:90%\" required placeholder=\"Your Email Address\" \/><\/p>\n<p><button type=\"submit\">Subscribe<\/button><\/p>\n<\/form>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Check out this swipe to reveal technique created by Daniel Sivan from Wired Messenger. This technique overlays a foreground image over a background and uses padding to &#8220;push&#8221; the image to the right of a container leaving a &#8220;handle&#8221; that the user can use to drag the content into view.<\/p>\n","protected":false},"author":2,"featured_media":3533,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,47],"tags":[],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/3535"}],"collection":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/comments?post=3535"}],"version-history":[{"count":7,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/3535\/revisions"}],"predecessor-version":[{"id":3562,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/3535\/revisions\/3562"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/3533"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=3535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=3535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=3535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}