<?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: UmapathiChandrasekaran</title>
    <description>The latest articles on DEV Community by UmapathiChandrasekaran (@umapathichandrasekaran).</description>
    <link>https://dev.to/umapathichandrasekaran</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%2F3955151%2F06f966f1-d316-4015-9d45-14501a5ed96b.jpeg</url>
      <title>DEV Community: UmapathiChandrasekaran</title>
      <link>https://dev.to/umapathichandrasekaran</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/umapathichandrasekaran"/>
    <language>en</language>
    <item>
      <title>How I Built a Cinematic Toothless Login Portal with Angular 21 🐉</title>
      <dc:creator>UmapathiChandrasekaran</dc:creator>
      <pubDate>Wed, 27 May 2026 20:46:06 +0000</pubDate>
      <link>https://dev.to/umapathichandrasekaran/how-i-built-a-cinematic-toothless-login-portal-with-angular-21-4cii</link>
      <guid>https://dev.to/umapathichandrasekaran/how-i-built-a-cinematic-toothless-login-portal-with-angular-21-4cii</guid>
      <description>&lt;p&gt;Have you ever wanted to build something so fun that you &lt;br&gt;
forgot you were even coding? That's exactly what happened &lt;br&gt;
when I built this — a fully cinematic, interactive login &lt;br&gt;
portal featuring &lt;strong&gt;Toothless the Night Fury&lt;/strong&gt; from &lt;br&gt;
&lt;em&gt;How to Train Your Dragon&lt;/em&gt; 🐉&lt;/p&gt;
&lt;h2&gt;
  
  
  🔗 Live Demo
&lt;/h2&gt;

&lt;p&gt;👉 &lt;a href="https://toothless-login-umapathichandrasekaran.vercel.app/" rel="noopener noreferrer"&gt;Try it here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💻 &lt;a href="https://github.com/UmapathiChandrasekaran/ToothlessLogin" rel="noopener noreferrer"&gt;View Source on GitHub&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  ✨ What Does It Do?
&lt;/h2&gt;

&lt;p&gt;This isn't just a login form. Toothless &lt;strong&gt;reacts to everything you do:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;👀 &lt;strong&gt;Eye Tracking&lt;/strong&gt; — the dragon's pupils follow your 
cursor in real time as you move around the screen&lt;/li&gt;
&lt;li&gt;🪽 &lt;strong&gt;Shy Behavior&lt;/strong&gt; — when you click the password field, 
Toothless lowers his wings and hides shyly&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Plasma Charge&lt;/strong&gt; — hitting the login button triggers 
a full plasma charging animation sequence&lt;/li&gt;
&lt;li&gt;🌩️ &lt;strong&gt;Cinematic Thunder&lt;/strong&gt; — custom lightning and thunder 
effects fire during dramatic moments&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  🛠️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Angular 21&lt;/strong&gt; — component architecture and reactive 
form state handling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS v3&lt;/strong&gt; — all layout and utility styles&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pure SVG&lt;/strong&gt; — Toothless is hand-crafted SVG, 
no images or libraries&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS Keyframe Animations&lt;/strong&gt; — all motion is pure CSS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini AI&lt;/strong&gt; — used to engineer the cinematic 
animation sequences and thunder/lightning effects&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  💡 How the Eye Tracking Works
&lt;/h2&gt;

&lt;p&gt;The core idea is simple — track the mouse position &lt;br&gt;
relative to the eye center and move the pupils:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;HostListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;mousemove&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;$event&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="nf"&gt;onMouseMove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;MouseEvent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;eyeRect&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;eyeElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getBoundingClientRect&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;eyeCenterX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;eyeRect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;left&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;eyeRect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;eyeCenterY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;eyeRect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;top&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;eyeRect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;height&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;angle&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;atan2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clientY&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;eyeCenterY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clientX&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;eyeCenterX&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// max pupil travel distance&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pupilX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cos&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;angle&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pupilY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;angle&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The pupils are constrained to a small radius so they &lt;br&gt;
never go outside the eye boundary — giving a natural &lt;br&gt;
realistic feel.&lt;/p&gt;


&lt;h2&gt;
  
  
  🪽 How the Shy Behavior Works
&lt;/h2&gt;

&lt;p&gt;When the password field receives focus, Angular's &lt;br&gt;
reactive form detects the state change and triggers &lt;br&gt;
a CSS class that animates the wings downward:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;onPasswordFocus&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;isPasswordFocused&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// wings lower&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;onPasswordBlur&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;isPasswordFocused&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// wings rise back&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the template:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;[class.wings-down]=&lt;/span&gt;&lt;span class="s"&gt;"isPasswordFocused"&lt;/span&gt; 
     &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"toothless-wings"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  ⚡ The Plasma Charge Sequence
&lt;/h2&gt;

&lt;p&gt;On form submission, a multi-stage animation fires:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Toothless opens his mouth&lt;/li&gt;
&lt;li&gt;A glowing plasma orb builds up&lt;/li&gt;
&lt;li&gt;The orb pulses and expands&lt;/li&gt;
&lt;li&gt;A flash covers the screen&lt;/li&gt;
&lt;li&gt;Login success state appears&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This entire sequence is timed using Angular's &lt;br&gt;
&lt;code&gt;setTimeout&lt;/code&gt; chain synced with CSS animation durations.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>showdev</category>
      <category>css</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
