Skip to content
This repository was archived by the owner on Jul 3, 2019. It is now read-only.

Commit 003196a

Browse files
committed
burst tut fixes
1 parent 97a1155 commit 003196a

File tree

4 files changed

+53
-32
lines changed

4 files changed

+53
-32
lines changed

app/pages/tutorials/burst.babel.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ const BurstPage = new React.createClass({
6262
</CodeSample>
6363

6464
<p>
65-
Just like with <span className="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 <span className="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.
6666
</p>
6767

6868
<p>
69-
From the technical point of view, <span className="highlight">Burst</span> is just a main <span className="highlight">ShapeSwirl</span> that holds a bunch of child <span className="highlight">ShapeSwirls</span>. Nonetheless, you can control each of the child swirls. Pictorially it looks like this:
69+
From the technical point of view, <span className="highlight">Burst</span> is just a main <span className="highlight">ShapeSwirl</span> that holds a bunch of child <span className="highlight">ShapeSwirls</span>. Pictorially it looks like this:
7070
</p>
7171

7272
<p>
@@ -88,7 +88,7 @@ const BurstPage = new React.createClass({
8888
</CodeSample>
8989

9090
<p>
91-
There are few more properties that <span className="highlight">Burst</span> implements over <span className="highlight">ShapeSwirl</span> to control the radial shape behavior that particles compose. The first one is the <span className="highlight">count</span> property that sets amount of particles:
91+
There are few more properties that <span className="highlight">Burst</span> implements over <span className="highlight">ShapeSwirl</span> to control the radial shape behavior that particles compose. The first one is the <span className="highlight">count</span> property that sets the amount of particles:
9292
</p>
9393

9494
<CodeSample pen="fe6f9d1476aae148f1cfb36f599c92ff">
@@ -142,7 +142,7 @@ const BurstPage = new React.createClass({
142142
</CodeSample>
143143

144144
<p>
145-
To recap, the main swirl of the <span className="highlight">Burst</span> has no <span className="highlight">style</span> attributes because it has no shape, it has no <span className="highlight">tween</span> related properties like <span className="highlight">duration</span> which is computed regarding particles <span className="highlight">duration</span>. But <span className="highlight">Burst</span> has all other properties most of them regarding position, opacity parent etc. You can always use the <UniteLink link="https://github.com/legomushroom/mojs/blob/master/api/burst.md">Burst API</UniteLink> as the reference.
145+
To recap, the main swirl of the <span className="highlight">Burst</span> has no <span className="highlight">style</span> attributes because it has no shape, it has no <span className="highlight">tween</span> related properties like <span className="highlight">duration</span> which is computed regarding particles' <span className="highlight">duration</span>. But <span className="highlight">Burst</span> has all other properties most of them regarding position, opacity, parent etc. You can always use the <UniteLink link="https://github.com/legomushroom/mojs/blob/master/api/burst.md">Burst API</UniteLink> as the reference.
146146
</p>
147147

148148
<p>
@@ -218,7 +218,7 @@ const BurstPage = new React.createClass({
218218
</CodeSample>
219219

220220
<p>
221-
The first parameter in <span className="highlight">stagger</span> function is <span className="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 <span className="highlight">stagger(25)</span> - this means stagger with step of <span className="highlight">25</span>, starting from <span className="highlight">0</span>.
221+
The first parameter in <span className="highlight">stagger</span> function is <span className="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 <span className="highlight">stagger(25)</span>, it will mean to stagger with step of <span className="highlight">25</span>, starting from <span className="highlight">0</span>.
222222
</p>
223223

224224
<p>
@@ -274,7 +274,7 @@ const BurstPage = new React.createClass({
274274
</CodeSample>
275275

276276
<p>
277-
So starting from 12 o'clock clockwise, the 5 childrens <span className="highlight">fill</span> properties gets values of <span className="highlight">deeppink</span>, <span className="highlight">cyan</span>, <span className="highlight">yellow</span> and then again starting from the beginning of the property map - <span className="highlight">deeppink</span>, <span className="highlight">cyan</span> ( <code className="code-inline">[0],[1],[2],[0],[1]</code> ).
277+
So starting from 12 o'clock clockwise, the 5 childrens <span className="highlight">fill</span> properties get values of <span className="highlight">deeppink</span>, <span className="highlight">cyan</span>, <span className="highlight">yellow</span> and then again starting from the beginning of the property map - <span className="highlight">deeppink</span>, <span className="highlight">cyan</span> ( <code className="code-inline">[0],[1],[2],[0],[1]</code> ).
278278
</p>
279279

280280
<p>
@@ -350,7 +350,7 @@ burst
350350
<Pen pen="28b429cd2d5ae8c0dd0f10cecd6d0bd0" height="500" />
351351

352352
<p>
353-
The catch here is to use the <span className="highlight">in</span> easing for <span className="highlight">scale</span> property and the opposite <span className="highlight">out</span> easing for particles position. Also we have set the <span className="highlight">pathScale</span> slightly smaller for "inner" particles. Also, we have defined a small <span className="highlight">degreeShift</span> for each odd("inner") particle.
353+
The catch here is to use the <span className="highlight">in</span> easing for <span className="highlight">scale</span> property and the opposite <span className="highlight">out</span> easing for particles position. Also, we have set the <span className="highlight">pathScale</span> slightly smaller for "inner" particles. After that, we have defined a small <span className="highlight">degreeShift</span> for each odd("inner") particle.
354354
</p>
355355

356356
<p>

app/pages/tutorials/shape.babel.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,10 @@ const heart = new mojs.Shape({
10141014

10151015
<h2>Use Cases</h2>
10161016

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 <span className="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+
10171021
<p>
10181022
Despite the fact that <span className="highlight">Shape</span> and <span className="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, <span className="highlight">Shapes</span> are often used to implode them into <span className="highlight">UI</span> thus enhancing it. From the development point of view — <span className="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 <span className="highlight">"shape framework"</span> to think in, so your motion sequences get more organized and consistent.
10191023
</p>

dist/main.js

Lines changed: 42 additions & 25 deletions
Large diffs are not rendered by default.

mockups/mojs-loop.sketch

8 KB
Binary file not shown.

0 commit comments

Comments
 (0)