<?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: Yousef Zedan</title>
    <description>The latest articles on DEV Community by Yousef Zedan (@youssefzidan1).</description>
    <link>https://dev.to/youssefzidan1</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%2F3926920%2Ff8f23b84-d998-43de-8b55-b7477568054d.png</url>
      <title>DEV Community: Yousef Zedan</title>
      <link>https://dev.to/youssefzidan1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/youssefzidan1"/>
    <language>en</language>
    <item>
      <title>I Built a 8.7KB React Animation Library (120+ FPS) on top of GSAP</title>
      <dc:creator>Yousef Zedan</dc:creator>
      <pubDate>Tue, 12 May 2026 11:14:16 +0000</pubDate>
      <link>https://dev.to/youssefzidan1/i-built-a-87kb-react-animation-library-120-fps-on-top-of-gsap-2b7p</link>
      <guid>https://dev.to/youssefzidan1/i-built-a-87kb-react-animation-library-120-fps-on-top-of-gsap-2b7p</guid>
      <description>&lt;p&gt;After weeks of development, I'm excited to share &lt;strong&gt;ZProximity Engine&lt;/strong&gt; - a React library for creating proximity-based animations.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎯 The Problem
&lt;/h2&gt;

&lt;p&gt;Creating magnetic cursors, hover effects, and scroll animations in React usually requires:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Manual event listeners&lt;/li&gt;
&lt;li&gt;Complex trigonometry&lt;/li&gt;
&lt;li&gt;Performance optimization headaches&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✨ The Solution
&lt;/h2&gt;

&lt;p&gt;ZProximity Engine abstracts all of this into a simple API:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Proximity&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;z-proximity-engine&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Proximity&lt;/span&gt; &lt;span class="na"&gt;preset&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"scale-magnetic"&lt;/span&gt; &lt;span class="na"&gt;reach&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"prox-item"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Hover me!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Proximity&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🏗️ Technical Highlights
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Zero Re-renders
&lt;/h3&gt;

&lt;p&gt;Uses GSAP's ticker system instead of React's render cycle.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Smart Batching
&lt;/h3&gt;

&lt;p&gt;Pre-caches quickTo functions on mount - no property lookups per frame.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Spatial Grid
&lt;/h3&gt;

&lt;p&gt;150px spatial hash grid - only checks nearby elements, not all 100+.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Minimal Bundle
&lt;/h3&gt;

&lt;p&gt;Tree-shakeable, only 8KB core.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎮 Interactive Demo
&lt;/h2&gt;

&lt;p&gt;Try it live: &lt;a href="https://z-proximity-engine.vercel.app/" rel="noopener noreferrer"&gt;https://z-proximity-engine.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Get Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;z-proximity-engine gsap @gsap/react
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full docs: &lt;a href="https://z-proximity-engine.vercel.app/#implementation" rel="noopener noreferrer"&gt;https://z-proximity-engine.vercel.app/#implementation&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🤝 What's Next?
&lt;/h2&gt;

&lt;p&gt;I'd love your feedback! What features would you add?&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/YoussefZidan-1/ZProximityEngine" rel="noopener noreferrer"&gt;https://github.com/YoussefZidan-1/ZProximityEngine&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If you found this useful, please ⭐ star the repo!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gsap</category>
      <category>npm</category>
      <category>webdev</category>
      <category>react</category>
    </item>
  </channel>
</rss>
