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
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ 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, creating as narrow container 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>
@@ -101,7 +101,7 @@ const BurstPage = new React.createClass({
101
101
</CodeSample>
102
102
103
103
<p>
104
-
The particles of the burst evenly placed in the circle that has 360 degrees which you can change with the <spanclassName="highlight">degree</span> property:
104
+
The particles of the burst are evenly placed in a 360 degree circle, which you can narrow down with the <spanclassName="highlight">degree</span> property:
@@ -115,11 +115,11 @@ const BurstPage = new React.createClass({
115
115
</CodeSample>
116
116
117
117
<p>
118
-
Here above, we have the burst that has <spanclassName="highlight">30 degrees</span> of sufficient place for particles.
118
+
Here above, we have a burst that has <spanclassName="highlight">30 degrees</span> of sufficient place for particles.
119
119
</p>
120
120
121
121
<p>
122
-
It is very important to note here that since the main swirl of <spanclassName="highlight">Burst</span> module has no actual shape - it completely have no style attributes that define shape's presentation - all of them among which are the <spanclassName="highlight">stroke</span> or <spanclassName="highlight">strokeWidth</span> or <spanclassName="highlight">fill</span> are completely useless.
122
+
It is very important to note here that since the main swirl of <spanclassName="highlight">Burst</span> module has no actual shape - it has no style attributes that define shape's presentation - all of them among which are the <spanclassName="highlight">stroke</span> or <spanclassName="highlight">strokeWidth</span> or <spanclassName="highlight">fill</span> are completely useless.
123
123
</p>
124
124
125
125
<p>
@@ -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, 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>
@@ -222,7 +222,7 @@ const BurstPage = new React.createClass({
222
222
</p>
223
223
224
224
<p>
225
-
In the demo above, that's exact the same circle, but we have <spanclassName="highlight">staggered</span> the <spanclassName="highlight">delay</span> property so it looks rather spiral now.
225
+
In the demo above, that's exact the same circle as in the demo before, but we have <spanclassName="highlight">staggered</span> the <spanclassName="highlight">delay</span> property so it looks rather spiral now.
226
226
</p>
227
227
228
228
<p>
@@ -254,7 +254,7 @@ const BurstPage = new React.createClass({
254
254
<h3>Property Maps</h3>
255
255
256
256
<p>
257
-
Property Map was designed to express sequential values. You can use it to generate values that repeat over and over but are mapped to children length. Basically, it is just an array that maps its values to children regarding child index with <spanclassName="highlight">mod</span> function. So if you have <spanclassName="highlight">property map</span> with <spanclassName="highlight">3 values</span> and burst has <spanclassName="highlight">5 children</span>, then <spanclassName="highlight">4</span>th and <spanclassName="highlight">5</span>th item will receive <spanclassName="highlight">0</span>th and <spanclassName="highlight">1</span>st values from the map respectively:
257
+
Property Map was designed to express sequential values. You can use it to generate values that repeat over and over but are mapped to children length. Basically, it is just an array that maps its values to children regarding child index with <spanclassName="highlight">mod</span> function. So if you have a <spanclassName="highlight">property map</span> with <spanclassName="highlight">3 values</span> and burst has <spanclassName="highlight">5 children</span>, then the <spanclassName="highlight">4</span>th and <spanclassName="highlight">5</span>th items will receive the<spanclassName="highlight">0</span>th and <spanclassName="highlight">1</span>st values from the map respectively:
@@ -274,11 +274,11 @@ const BurstPage = new React.createClass({
274
274
</CodeSample>
275
275
276
276
<p>
277
-
So starting from 12 o'clock clockwise children <spanclassName="highlight">fill</span>property 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>.
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> ).
278
278
</p>
279
279
280
280
<p>
281
-
Property maps work with any property and property forms, in fact, that's just a prism(or multiplexer) that feeds children with properties by virtue of modulus function. Good aid if you want to set some property on child explicitly.
281
+
Property maps work with any property and property forms, in fact, that's just a prism(or multiplexer) that feeds children with properties by virtue of modulus function. Good aid if you want to set some property on child explicitly.
282
282
</p>
283
283
284
284
<h2> then, tune, generate and play </h2>
@@ -312,13 +312,13 @@ burst
312
312
</Cite>
313
313
314
314
<p>
315
-
<spanclassName="highlight">Burst</span>, in similarity with <spanclassName="highlight">Shape</span> or <spanclassName="highlight">ShapeSwirl</span>, has numerous application fields, among which are motion graphics, animation or UI. In contrary to <UniteLinklink="/tutorials/shape/"> Shape&ShapeSwirl</UniteLink> tutorial, I won't split use cases to different entities but rather will try to do lot's of small demos, each with explanation comments. Hang tight!
315
+
<spanclassName="highlight">Burst</span>, in similarity with <spanclassName="highlight">Shape</span> or <spanclassName="highlight">ShapeSwirl</span>, has numerous application fields, among which are motion graphics, animation or UI. In contrary to the <UniteLinklink="/tutorials/shape/"> Shape&ShapeSwirl</UniteLink> tutorial, I won't split use cases to different entities but rather will try to do lot's of small demos, each with explanation comments. Hang tight!
316
316
</p>
317
317
318
318
<h3>Micro Confirmations</h3>
319
319
320
320
<p>
321
-
First what comes to mind when I see the default burst - is the famous Twitter's fav animation. Animations like that are usually called <spanclassName="highlight">micro confirmations</span> but I've used to call them <spanclassName="highlight">micro celebrations</span> because of their festivity.
321
+
The first thing that comes to mind when I see the default burst - is the famous Twitter's fav animation. Animations like that are usually called <spanclassName="highlight">micro confirmations</span> but I've used to call them <spanclassName="highlight">micro celebrations</span> because of their festivity.
0 commit comments