aboutsummaryrefslogtreecommitdiff
path: root/build/bidirectional-scrolling/index.html
blob: 3f9ecd9c4cd1186e66e3f16b231f23ef26cbab4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="icon" href="data:,">
	<title>Bidirectional Scrolling: Why Not Both?</title>
	<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
	<link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>

<nav>
	<a href="#menu">Menu &darr;</a>
</nav>

<main>
<h1 id="bidirectional-scrolling-why-not-both">Bidirectional Scrolling: Why Not Both?</h1>

<p>2020-11-09</p>

<p><em>I recently came across Adam Silver&#8217;s post <a href="https://adamsilver.io/articles/bidirectional-scrolling-whats-not-to-like/">about the merits and pitfalls of bidirectional scrolling</a></em> and found myself conflicted with the design arguments put forth in the article. It&#8217;s a very good article overall, and I suggest giving it a read before digging deeper into my post here.</p>

<h2 id="the-premise">The Premise</h2>

<p>The original article argues that displaying page content via horizontal scrolling (and therefore slightly hiding interactive content) creates a few major issues:</p>

<ul>
<li>it increases the chance users won&#8217;t see it</li>
<li>there&#8217;s a greater reliance on digital literacy</li>
<li>it&#8217;s generally more labour intensive for users</li>
</ul>

<p>Adam also makes a solid statement here:</p>

<blockquote>
<p>Having to scroll down and across in a zig zag fashion can be tiresome, especially for people with motor impairments.</p>
</blockquote>

<p>But I don&#8217;t believe these issues create a need to completely remove the horizontal &#8220;scrolling&#8221; design altogether. You can still implement the <code>See All Items</code> category link, while allowing the horizontal content to load in <em>dynamically</em>. Balance is always key.</p>

<h2 id="not-all-at-once-please">Not All At Once, Please!</h2>

<p>So what exactly do I mean by <em>dynamically</em> loading in horizontal content?</p>

<ul>
<li>The user is shown the top 4 items in a given category</li>
<li>From there, the user can use the <code>See All Items</code> link to jump into a full category page</li>
<li>If they so desire, they can begin scroll horizontally in a given category row

<ul>
<li>Once they reach the end of the row, 4 more items will load in automatically to expand the list</li>
<li>To avoid a never-ending list, it might be best to limit total row items to ~20 items. At this point the UI could prompt the user to <code>View All Items</code> in that category.</li>
</ul></li>
</ul>

<p>By loading the row content in piece-by-piece, initial loads for users will be faster and subsequent list items will load quickly as well (since they would limit to a set default - in this case only 4).</p>

<h2 id="final-improvements">Final Improvements</h2>

<p>Below you can find a quick, static version of this concept. Here you can see the horizontal list items, along with their corresponding <code>See All Items</code> links. You&#8217;ll have to use your imagination for how new items would load once you each the end of a horizontal row. (I&#8217;m too lazy to spend extra time building out that functionality for a hypothetical blog post)</p>

<p><a href="https://codepen.io/bradleytaunt/pen/pobxpXz">Live CodePen Example</a></p>
<footer role="contentinfo">
    <h2>Menu Navigation</h2>
    <ul id="menu">
        <li><a href="/">Home</a></li>
        <li><a href="/projects">Projects</a></li>
        <li><a href="/uses">Uses</a></li>
        <li><a href="/wiki">Wiki</a></li>
        <li><a href="/resume">Resume</a></li>
        <li><a href="/colophon">Colophon</a></li>
        <li><a href="/now">Now</a></li>
        <li><a href="/donate">Donate</a></li>
        <li><a href="/atom.xml">RSS</a></li>
        <li><a href="#top">&uarr; Top of the page</a></li>
    </ul>
    <small>
        Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
        Maintained with ♥ for the web. <br>
        Proud supporter of <a href="https://usefathom.com/ref/DKHJVX">Fathom</a> &amp; <a href="https://nextdns.io/?from=74d3p3h8">NextDNS</a>. <br>
        The content for this site is <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>.<br> The <a href="https://git.sr.ht/~bt/bt.ht">code for this site</a> is <a href="https://git.sr.ht/~bt/bt.ht/tree/master/item/LICENSE">MIT</a>.
    </small>
</footer>