You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 3, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: app/pages/tutorials/burst.babel.jsx
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -62,11 +62,11 @@ const BurstPage = new React.createClass({
62
62
</CodeSample>
63
63
64
64
<p>
65
-
Just like with <spanclassName="highlight">Shape</span>, mojs takes care about all bootstrapping work, create as narrow container for the burst as possible, and positioning the effect for you.
65
+
Just like with <spanclassName="highlight">Shape</span>, mojs takes care about all bootstrapping work, create as narrow container for the burst as possible and positioning the effect for you.
66
66
</p>
67
67
68
68
<p>
69
-
From the technical point of view, <spanclassName="highlight">Burst</span> is just a main <spanclassName="highlight">ShapeSwirl</span> that holds a bunch of child <spanclassName="highlight">ShapeSwirls</span>. Nonetheless, you can control each of the child swirls. Pictorially it looks like this:
69
+
From the technical point of view, <spanclassName="highlight">Burst</span> is just a main <spanclassName="highlight">ShapeSwirl</span> that holds a bunch of child <spanclassName="highlight">ShapeSwirls</span>. Pictorially it looks like this:
70
70
</p>
71
71
72
72
<p>
@@ -88,7 +88,7 @@ const BurstPage = new React.createClass({
88
88
</CodeSample>
89
89
90
90
<p>
91
-
There are few more properties that <spanclassName="highlight">Burst</span> implements over <spanclassName="highlight">ShapeSwirl</span> to control the radial shape behavior that particles compose. The first one is the <spanclassName="highlight">count</span> property that sets amount of particles:
91
+
There are few more properties that <spanclassName="highlight">Burst</span> implements over <spanclassName="highlight">ShapeSwirl</span> to control the radial shape behavior that particles compose. The first one is the <spanclassName="highlight">count</span> property that sets the amount of particles:
@@ -142,7 +142,7 @@ const BurstPage = new React.createClass({
142
142
</CodeSample>
143
143
144
144
<p>
145
-
To recap, the main swirl of the <spanclassName="highlight">Burst</span> has no <spanclassName="highlight">style</span> attributes because it has no shape, it has no <spanclassName="highlight">tween</span> related properties like <spanclassName="highlight">duration</span> which is computed regarding particles <spanclassName="highlight">duration</span>. But <spanclassName="highlight">Burst</span> has all other properties most of them regarding position, opacity parent etc. You can always use the <UniteLinklink="https://github.com/legomushroom/mojs/blob/master/api/burst.md">Burst API</UniteLink> as the reference.
145
+
To recap, the main swirl of the <spanclassName="highlight">Burst</span> has no <spanclassName="highlight">style</span> attributes because it has no shape, it has no <spanclassName="highlight">tween</span> related properties like <spanclassName="highlight">duration</span> which is computed regarding particles'<spanclassName="highlight">duration</span>. But <spanclassName="highlight">Burst</span> has all other properties most of them regarding position, opacity, parent etc. You can always use the <UniteLinklink="https://github.com/legomushroom/mojs/blob/master/api/burst.md">Burst API</UniteLink> as the reference.
146
146
</p>
147
147
148
148
<p>
@@ -218,7 +218,7 @@ const BurstPage = new React.createClass({
218
218
</CodeSample>
219
219
220
220
<p>
221
-
The first parameter in <spanclassName="highlight">stagger</span> function is <spanclassName="highlight">start</span> value, all subsequent steps will be added to that start value which is fairy optional tho and can be omitted. If you just write <spanclassName="highlight">stagger(25)</span> - this means stagger with step of <spanclassName="highlight">25</span>, starting from <spanclassName="highlight">0</span>.
221
+
The first parameter in <spanclassName="highlight">stagger</span> function is <spanclassName="highlight">start</span> value, all subsequent steps will be added to that start value which is fairy optional tho and can be omitted. If you just write <spanclassName="highlight">stagger(25)</span>, it will mean to stagger with step of <spanclassName="highlight">25</span>, starting from <spanclassName="highlight">0</span>.
222
222
</p>
223
223
224
224
<p>
@@ -274,7 +274,7 @@ const BurstPage = new React.createClass({
274
274
</CodeSample>
275
275
276
276
<p>
277
-
So starting from 12 o'clock clockwise, the 5 childrens <spanclassName="highlight">fill</span> properties gets values of <spanclassName="highlight">deeppink</span>, <spanclassName="highlight">cyan</span>, <spanclassName="highlight">yellow</span> and then again starting from the beginning of the property map - <spanclassName="highlight">deeppink</span>, <spanclassName="highlight">cyan</span> ( <codeclassName="code-inline">[0],[1],[2],[0],[1]</code> ).
277
+
So starting from 12 o'clock clockwise, the 5 childrens <spanclassName="highlight">fill</span> properties get values of <spanclassName="highlight">deeppink</span>, <spanclassName="highlight">cyan</span>, <spanclassName="highlight">yellow</span> and then again starting from the beginning of the property map - <spanclassName="highlight">deeppink</span>, <spanclassName="highlight">cyan</span> ( <codeclassName="code-inline">[0],[1],[2],[0],[1]</code> ).
The catch here is to use the <spanclassName="highlight">in</span> easing for <spanclassName="highlight">scale</span> property and the opposite <spanclassName="highlight">out</span> easing for particles position. Also we have set the <spanclassName="highlight">pathScale</span> slightly smaller for "inner" particles. Also, we have defined a small <spanclassName="highlight">degreeShift</span> for each odd("inner") particle.
353
+
The catch here is to use the <spanclassName="highlight">in</span> easing for <spanclassName="highlight">scale</span> property and the opposite <spanclassName="highlight">out</span> easing for particles position. Also, we have set the <spanclassName="highlight">pathScale</span> slightly smaller for "inner" particles. After that, we have defined a small <spanclassName="highlight">degreeShift</span> for each odd("inner") particle.
Copy file name to clipboardExpand all lines: app/pages/tutorials/shape.babel.jsx
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1014,6 +1014,10 @@ const heart = new mojs.Shape({
1014
1014
1015
1015
<h2>Use Cases</h2>
1016
1016
1017
+
<Cite>
1018
+
Please note that the use cases section contains a lot of live code examples but the actual code samples are omitted for time savings and simplicity sake. The actual code is still available on the <spanclassName="highlight">Babel</span> tab of the pens and I highly encourage you to read through and play with them while we will walk through this section. You can omit reading large demos code since it is probably unreadable (Codepen can contain bundled code) or it could be too large to understand sparingly, but you can return to them later, - after you will complete this tutorial. I will leave a little (×) mark for you to indicate that you can skip reading the source code of the Codepen for now.
1019
+
</Cite>
1020
+
1017
1021
<p>
1018
1022
Despite the fact that <spanclassName="highlight">Shape</span> and <spanclassName="highlight">ShapeSwirl</span> modules are nothing than tiny bits that compose higher order modules creating some matured effects, they have strong use cases and can be used on their own. There is no thing in the whole world such expressive and appealing as simple geometric shapes so they are ubiquitous in the motion graphics nowadays. You can use shapes in your animations to add special effects and details making your animation more expressive. Also, <spanclassName="highlight">Shapes</span> are often used to implode them into <spanclassName="highlight">UI</span> thus enhancing it. From the development point of view — <spanclassName="highlight">Shape</span> can be created with just one declarative call allowing you to focus entirely on you motion sequences and don't spend the time bootstrapping things, this fact powers you with a <spanclassName="highlight">"shape framework"</span> to think in, so your motion sequences get more organized and consistent.
0 commit comments