<?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>Forem: Daniel Hult</title>
    <description>The latest articles on Forem by Daniel Hult (@danielhult).</description>
    <link>https://forem.com/danielhult</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%2F449225%2F4bdf7ddd-b74f-45cf-82b1-34888709e223.png</url>
      <title>Forem: Daniel Hult</title>
      <link>https://forem.com/danielhult</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/danielhult"/>
    <language>en</language>
    <item>
      <title>App animations</title>
      <dc:creator>Daniel Hult</dc:creator>
      <pubDate>Wed, 26 Aug 2020 12:38:09 +0000</pubDate>
      <link>https://forem.com/danielhult/app-animations-1fi4</link>
      <guid>https://forem.com/danielhult/app-animations-1fi4</guid>
      <description>&lt;p&gt;&lt;em&gt;App animation:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/daniel-hult/embed/xxZKLBV?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>javascript</category>
      <category>gsap</category>
    </item>
    <item>
      <title> Vue page transitions</title>
      <dc:creator>Daniel Hult</dc:creator>
      <pubDate>Fri, 21 Aug 2020 08:55:11 +0000</pubDate>
      <link>https://forem.com/danielhult/vue-page-transitions-4d41</link>
      <guid>https://forem.com/danielhult/vue-page-transitions-4d41</guid>
      <description>&lt;p&gt;A page transition example using Vue and GSAP 3 together (works best on desktop size):&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/daniel-hult/embed/RwrYozK?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This was done using the Vue router, setting up some routes, and then using the JS hooks in the main Vue app instance. In there you can have your own &lt;code&gt;@enter&lt;/code&gt; and &lt;code&gt;@leave&lt;/code&gt; hook code.&lt;/p&gt;

&lt;p&gt;The idea is that you add the image overlay and remove the text in the &lt;code&gt;@leave&lt;/code&gt; hook, and then bring it in again from the bottom in the &lt;code&gt;@enter&lt;/code&gt; hook.&lt;/p&gt;

&lt;p&gt;Hope you like it!&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>vue</category>
      <category>animation</category>
    </item>
  </channel>
</rss>
