<?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: Sam Prince Franklin K</title>
    <description>The latest articles on DEV Community by Sam Prince Franklin K (@samprincefranklin).</description>
    <link>https://dev.to/samprincefranklin</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%2F760580%2Fd4b28008-6440-455a-9e18-95565c18d954.jpg</url>
      <title>DEV Community: Sam Prince Franklin K</title>
      <link>https://dev.to/samprincefranklin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samprincefranklin"/>
    <language>en</language>
    <item>
      <title>How to Lotify?</title>
      <dc:creator>Sam Prince Franklin K</dc:creator>
      <pubDate>Sat, 08 Jan 2022 03:30:39 +0000</pubDate>
      <link>https://dev.to/samprincefranklin/how-to-lotify-4l79</link>
      <guid>https://dev.to/samprincefranklin/how-to-lotify-4l79</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Lottie?&lt;/strong&gt;&lt;br&gt;
A Lottie is a JSON-based animation file format that allows designers to distribute animations on any platform just like static assets. They are tiny files that can be scaled up or down without pixelation and operate on any device.&lt;/p&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9a91pu2m5jg3olzh5wz2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9a91pu2m5jg3olzh5wz2.png" alt="Lottifiels.com - A sample"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You have a Lottie or dotLottie format file. Let's get started on incorporating it into your website. This method may be applied to any webpage, blog, or platform that allows you to modify HTML.&lt;/p&gt;
&lt;h2&gt;
  
  
  Insert a script tag into the LottieFiles web player component:
&lt;/h2&gt;

&lt;p&gt;LottieFiles maintains the lottie-player&amp;gt; web component, which allows you to simply put a Lottie player anywhere else on your webpage by utilising our unique web component. To include the web component, copy the script URL for the player and paste it into the head&amp;gt; section of your page HTML (or anywhere on the page).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fro6sm754bcqklp1fq8b3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fro6sm754bcqklp1fq8b3.png" alt="lottiefiles workspace"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how your workspace of lottifiles looks :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwpo3g6whzwa7kl0xdmf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwpo3g6whzwa7kl0xdmf.png" alt="lottifiles workspace"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By clicking,&lt;strong&gt;&lt;/strong&gt; you will get the above interface where you get the JavaScript code for the above animation made using &lt;strong&gt;Adobe After Effects&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Sample :&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;lottie-player src="https://assets1.lottiefiles.com/packages/lf20_kyu7xb1v.json"  background="transparent"  speed="1"  style="width: 300px; height: 300px;"  loop controls autoplay&amp;gt;&amp;lt;/lottie-player&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Editing your &lt;strong&gt;HTML&lt;/strong&gt; file with the JavaScript block from the Lottiefiles :
&lt;/h2&gt;

&lt;p&gt;Here below, I have added the Lottifiles script in the Line 64 &amp;amp; 65&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fsl8a26n2j6odqdgtqe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fsl8a26n2j6odqdgtqe.png" alt="javascript code in line 64 &amp;amp;65"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So by this way, you can add &lt;strong&gt;Adobe After Effects&lt;/strong&gt; animations to your Webpages :)&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>ui</category>
      <category>adobe</category>
    </item>
  </channel>
</rss>
