{"id":3597,"date":"2018-01-03T03:01:22","date_gmt":"2018-01-03T03:01:22","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=3597"},"modified":"2018-01-05T23:11:13","modified_gmt":"2018-01-05T23:11:13","slug":"faux-fixed-interactive-email-scrolling-technique","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/faux-fixed-interactive-email-scrolling-technique\/","title":{"rendered":"Faux-Fixed Interactive Email Scrolling Technique"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.emailonacid.com\/images\/blog_images\/Emailology\/2017\/2017_halloween_scroll\/bball-scroll.gif\" alt=\"\" \/><\/p>\n<p>A common technique used on web-pages to make blocks of content stay stationary while the page is being scrolled is by using fixed positioning (position:fixed). <\/p>\n<p>Unfortunately, this CSS property is <a href=\"https:\/\/freshinbox.com\/resources\/css.php\">not supported<\/a> by the majority of email clients so we need to resort to some trickery to get this to work.<\/p>\n<p>I wrote on the <a href=\"https:\/\/www.emailonacid.com\/blog\/article\/email-development\/how-we-created-out-interactive-scrolling-halloween-email\" target=_new>Email on Acid blog<\/a> a technique to mimic fixed positioning yet works on a surprising number of email clients, namely: iOS (iPhone, iPad), Apple Mail, Outlook for Mac, Gmail webmail and mobile apps (yes!) and Yahoo! webmail.<\/p>\n<p>The technique combines the following techniques:<\/p>\n<ul>\n<li>Overflow scrolling<\/li>\n<li>Mark Robbins&#8217; <a href=\"http:\/\/blog.gorebel.com\/absolute-positioning-in-email\/\" rel=\"noopener\" target=\"_blank\">absolute positioning technique<\/a><\/li>\n<li>A method to <a href=\"https:\/\/freshinbox.com\/blog\/changing-the-stacking-order-of-elements-without-z-index\/\">shift stacking order<\/a> without the use of z-index.<\/li>\n<\/ul>\n<p>I built an example for Email on Acid&#8217;s Halloween email.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.emailonacid.com\/images\/blog_images\/Emailology\/2017\/2017_halloween_scroll\/halloween-scroll.gif\" alt=\"\" \/><\/p>\n<p>Since Outlook.com strips position and opacity, we&#8217;re unable to use stacking order tricks in Outlook so it doesn&#8217;t work there.<\/p>\n<p><a href=\"https:\/\/www.emailonacid.com\/blog\/article\/email-development\/how-we-created-out-interactive-scrolling-halloween-email\" target=_new>Read the article for more details.<\/a><\/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>I wrote on the <a href=\"https:\/\/www.emailonacid.com\/blog\/article\/email-development\/how-we-created-out-interactive-scrolling-halloween-email\" target=_new>Email on Acid blog<\/a> a technique to mimic fixed positioning yet works on a surprising number of email clients, namely: iOS (iPhone, iPad), Apple Mail, Outlook for Mac, Gmail Webmail and Mobile Apps (yes!) and Yahoo! Webmail&#8230;<\/p>\n","protected":false},"author":2,"featured_media":3056,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48,24,25],"tags":[],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/3597"}],"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=3597"}],"version-history":[{"count":9,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/3597\/revisions"}],"predecessor-version":[{"id":3606,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/3597\/revisions\/3606"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/3056"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=3597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=3597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=3597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}