<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: jjangik</title>
    <description>The latest articles on DEV Community by jjangik (@jjangik).</description>
    <link>https://dev.to/jjangik</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3854473%2F9a03f178-5eb2-4102-83af-714df1bea85b.png</url>
      <title>DEV Community: jjangik</title>
      <link>https://dev.to/jjangik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jjangik"/>
    <language>en</language>
    <item>
      <title>Building Infinite Scroll Galleries with GSAP and Three.js Shaders</title>
      <dc:creator>jjangik</dc:creator>
      <pubDate>Wed, 01 Apr 2026 03:14:33 +0000</pubDate>
      <link>https://dev.to/jjangik/building-infinite-scroll-galleries-with-gsap-and-threejs-shaders-bgj</link>
      <guid>https://dev.to/jjangik/building-infinite-scroll-galleries-with-gsap-and-threejs-shaders-bgj</guid>
      <description>&lt;p&gt;I've been experimenting with infinite scroll gallery interactions — &lt;br&gt;
the kind you see on Awwwards-winning sites — and built two &lt;br&gt;
components I wanted to share.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Infinite 2D Grid
&lt;/h2&gt;

&lt;p&gt;An omnidirectional infinite grid. Scroll or drag in any direction &lt;br&gt;
and the cards wrap seamlessly. Each card has position-based inner &lt;br&gt;
parallax, and clicking any card triggers a fullscreen expansion &lt;br&gt;
with animated border radius.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://infinite-2d-grid-scroll.netlify.app" rel="noopener noreferrer"&gt;https://infinite-2d-grid-scroll.netlify.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key technical details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DOM + CSS &lt;code&gt;translate3d&lt;/code&gt; with modular wrapping on both axes&lt;/li&gt;
&lt;li&gt;Position-based inner parallax (image offset based on card's screen position)&lt;/li&gt;
&lt;li&gt;Off-screen culling for performance&lt;/li&gt;
&lt;li&gt;Mobile: 1:1 touch drag bypassing lerp for instant response&lt;/li&gt;
&lt;li&gt;GSAP timeline for fullscreen detail expansion&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  2. Infinite Horizontal Scroll Gallery
&lt;/h2&gt;

&lt;p&gt;A Three.js-powered gallery with curved depth. Three rows scroll &lt;br&gt;
at different speeds. The interesting part: cards expand to &lt;br&gt;
fullscreen via a &lt;strong&gt;custom vertex shader&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://infinite-scroll-horizontal-gallery.netlify.app" rel="noopener noreferrer"&gt;https://infinite-scroll-horizontal-gallery.netlify.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The shader uses a &lt;code&gt;uCorners&lt;/code&gt; vec4 uniform — each corner (TL, TR, &lt;br&gt;
BL, BR) animates independently from 0 to 1, with randomized &lt;br&gt;
stagger. The vertex shader interpolates between the card's curved &lt;br&gt;
state and a fullscreen state using bilinear interpolation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight glsl"&gt;&lt;code&gt;&lt;span class="kt"&gt;float&lt;/span&gt; &lt;span class="n"&gt;cornersProgress&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;mix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uCorners&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uCorners&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="n"&gt;mix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uCorners&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uCorners&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="n"&gt;uv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nb"&gt;gl_Position&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;projectionMatrix&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;viewMatrix&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; 
  &lt;span class="nf"&gt;mix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;defaultState&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fullScreenState&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cornersProgress&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means every time you click a card, the expansion looks &lt;br&gt;
slightly different.&lt;/p&gt;

&lt;h2&gt;
  
  
  Both galleries include:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Responsive design (desktop + mobile)&lt;/li&gt;
&lt;li&gt;Loading progress bar&lt;/li&gt;
&lt;li&gt;Configurable via 40+ variables in a CONFIG section&lt;/li&gt;
&lt;li&gt;No build tools — open index.html and it works&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I packaged these as a product on &lt;br&gt;
&lt;a href="https://jjangikk.gumroad.com/l/infinite-gallery-pack" rel="noopener noreferrer"&gt;Gumroad&lt;/a&gt; &lt;br&gt;
for anyone who wants to use them in their projects.&lt;/p&gt;

&lt;p&gt;Would love to hear what you think about the interactions!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>threejs</category>
    </item>
  </channel>
</rss>
