<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Webdev on sugar, spice, &amp;terminal? nice</title>
    <link>https://terminal.space/tag/webdev/</link>
    <description>Recent content in Webdev on sugar, spice, &amp;terminal? nice</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 05 May 2024 05:44:38 +0000</lastBuildDate>
    <atom:link href="https://terminal.space/tag/webdev/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Adding a sliding animation in 2024 - WHY IS THIS SO HARD</title>
      <link>https://terminal.space/tech/adding-a-sliding-animation-in-2024-why-is-this-so-hard/</link>
      <pubDate>Sun, 05 May 2024 05:44:38 +0000</pubDate>
      <guid>https://terminal.space/tech/adding-a-sliding-animation-in-2024-why-is-this-so-hard/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;https://terminal.space/tech/adding-a-sliding-animation-in-2024-why-is-this-so-hard/images/karl-abuid-7ezVb0oTQ6M-unsplash.jpg&#34;&#xA;    alt=&#34;A tower of blocks&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;A tower of blocks&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;I had a scenario for a &lt;a href=&#34;https://github.com/intentionally-left-nil/wall_of_thanks/&#34;&gt;personal project&lt;/a&gt; where I had e.g. a (+) button, and clicking that button should insert a new thingy into the DOM. No problem-o. &lt;code&gt;button.addAdjacentHTML(element, &amp;lt;div&amp;gt;thingy&amp;lt;/div&amp;gt;)&lt;/code&gt; to the rescue.&lt;/p&gt;&#xA;&lt;p&gt;Okay, now do it, but with animations. Sure easy, peasy. Let me just animate opacity 0 -&amp;gt; 1 and&amp;hellip; oh, that works for the new element, but the rest of the page just snaps to the new layout. That&amp;rsquo;s pretty jarring.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
