@@ -15,7 +15,8 @@ <h2 class="c-heading c-heading--medium">Basic Bubble</h2>
15
15
Lorem ipsum dolor sit amet, consectetur adipiscing elit
16
16
</ p >
17
17
</ div >
18
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <div class="c-bubble c-bubble--top"> This bubble is on the top</div> </ code > </ pre > </ div >
18
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <Bubble position="up slow"> Up</Bubble>
19
+ </ code > </ pre > </ div >
19
20
</ div >
20
21
21
22
< h3 id ="positions " class ="c-heading c-heading--medium "> Positions</ h3 >
@@ -24,13 +25,13 @@ <h3 id="positions" class="c-heading c-heading--medium">Positions</h3>
24
25
attributes but that seemed too opinionated.
25
26
</ p >
26
27
< p class ="c-paragraph ">
27
- < span class ="c-bubble c-bubble--right c-text--mono "> .c-bubble-- right</ span >
28
+ < span class ="c-bubble c-bubble--right c-text--mono "> position=" right" </ span >
28
29
</ p >
29
30
< p class ="c-paragraph ">
30
- < span class ="c-bubble c-bubble--left c-text--mono "> .c-bubble-- left</ span >
31
+ < span class ="c-bubble c-bubble--left c-text--mono "> position=" left" </ span >
31
32
</ p >
32
33
< p class ="c-paragraph ">
33
- < span class ="c-bubble c-bubble--bottom c-text--mono "> .c-bubble--bottom </ span >
34
+ < span class ="c-bubble c-bubble--bottom c-text--mono "> position="down" </ span >
34
35
</ p >
35
36
36
37
< h2 id ="animation " class ="c-heading c-heading--medium "> Animation</ h2 >
@@ -49,17 +50,17 @@ <h2 id="animation" class="c-heading c-heading--medium">Animation</h2>
49
50
}
50
51
</ script >
51
52
52
- < h3 class ="c-heading c-heading--small c-text--mono "> .a-bubble </ h3 >
53
+ < h3 class ="c-heading c-heading--small c-text--mono "> animate </ h3 >
53
54
< p class ="c-paragraph ">
54
- Apply the < code class ="c-code "> .a-bubble </ code > class to enable animation on each bubble.
55
+ Apply the < code class ="c-code "> animate </ code > to enable animation on each bubble.
55
56
</ p >
56
57
57
- < h3 class ="c-heading c-heading--small "> < span class ="c-text--mono "> -- slow, -- fast</ span > </ h3 >
58
+ < h3 class ="c-heading c-heading--small "> < span class ="c-text--mono "> slow, fast</ span > </ h3 >
58
59
< p class ="c-paragraph ">
59
60
Every animation comes with slow and fast modifiers.
60
61
</ p >
61
62
62
- < h3 class ="c-heading c-heading--small c-text--mono "> -- top, -- bottom, -- left, -- right</ h3 >
63
+ < h3 class ="c-heading c-heading--small c-text--mono "> top, bottom, left, right</ h3 >
63
64
< p class ="c-paragraph ">
64
65
Add one of these modifiers to change the origin of the animation. Default is from the center of the element.
65
66
</ p >
0 commit comments