<?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: Nitin Tulswani</title>
    <description>The latest articles on DEV Community by Nitin Tulswani (@nitin42).</description>
    <link>https://dev.to/nitin42</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%2F14586%2F4b91f610-624d-4284-b486-3ad91dae9ea8.jpeg</url>
      <title>DEV Community: Nitin Tulswani</title>
      <link>https://dev.to/nitin42</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nitin42"/>
    <language>en</language>
    <item>
      <title>Animate Components</title>
      <dc:creator>Nitin Tulswani</dc:creator>
      <pubDate>Sun, 02 Apr 2017 17:43:41 +0000</pubDate>
      <link>https://dev.to/nitin42/animate-components</link>
      <guid>https://dev.to/nitin42/animate-components</guid>
      <description>&lt;p&gt;&lt;a href="http://animate-components.surge.sh/"&gt;Animate Components&lt;/a&gt; is a small library that provides different elemental components for doing animations in React. Its flexible and very simple to use. &lt;/p&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React, { Component } from 'react';
import { Bounce } from 'animate-components';

class App extends Component {
  render () {
    return (
      &amp;lt;div&amp;gt;
        &amp;lt;Bounce&amp;gt;
          &amp;lt;h1&amp;gt;Hello World&amp;lt;/h1&amp;gt;
        &amp;lt;/Bounce&amp;gt;
      &amp;lt;/div&amp;gt;
    );
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can then pass various props to the component &lt;code&gt;Bounce&lt;/code&gt; like,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;duration&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;timingFunction&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;delay&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;direction&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;iterations&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;backfaceVisible&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;fillMode&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How it works ?
&lt;/h2&gt;

&lt;p&gt;Basically all the animation components are wrapped in a high order function which renders a &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; element with the styles derived from the props. It covers all the abstraction for composing an animation so that you don't have to worry about the &lt;code&gt;@keyframes&lt;/code&gt; rule. Just add the properties to an animation and that's it.&lt;br&gt;
View on &lt;a href="https://github.com/nitin42/animate-components"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>react</category>
      <category>css3</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
