|
| 1 | +import $ from 'jquery'; |
| 2 | +import './jquery.marker-animation.min'; |
| 3 | +import './plugin.scss'; |
| 4 | + |
| 5 | +$( () => { |
| 6 | + $( '#app' ).html( ` |
| 7 | +<div> |
| 8 | + <div class=""> |
| 9 | + This page is demonstration of <a href="https://github.com/technote-space/jquery.marker-animation">jQuery Marker Animation</a>. |
| 10 | + </div> |
| 11 | + <div class="blank-box"> |
| 12 | + <p> |
| 13 | + Hello, Dolly |
| 14 | + </p> |
| 15 | + <p> |
| 16 | + <span class="marker-animation" data-ma_repeat="true">Well, hello, Dolly</span> |
| 17 | + </p> |
| 18 | + <p> |
| 19 | + It's so nice to have you back where you belong |
| 20 | + </p> |
| 21 | + <p> |
| 22 | + You're lookin' swell, Dolly |
| 23 | + </p> |
| 24 | + <p> |
| 25 | + I can tell, Dolly |
| 26 | + </p> |
| 27 | + <p> |
| 28 | + <span class="marker-animation" data-ma_color="blue">You're still glowin', you're still crowin'</span> |
| 29 | + </p> |
| 30 | + <p> |
| 31 | + You're still goin' strong |
| 32 | + </p> |
| 33 | + <p> |
| 34 | + I feel the room swayin' |
| 35 | + </p> |
| 36 | + <p> |
| 37 | + While the band's playin' |
| 38 | + </p> |
| 39 | + <p> |
| 40 | + One of our old favorite songs from way back when |
| 41 | + </p> |
| 42 | + <p> |
| 43 | + <span class="marker-animation" data-ma_color="red">So, take her wrap, fellas<br>Dolly, never go away again</span> |
| 44 | + </p> |
| 45 | + <p> |
| 46 | + Hello, Dolly |
| 47 | + </p> |
| 48 | + <p> |
| 49 | + Well, hello, Dolly |
| 50 | + </p> |
| 51 | + <p> |
| 52 | + It's so nice to have you back where you belong |
| 53 | + </p> |
| 54 | + <p> |
| 55 | + <span class="marker-animation" data-ma_font_weight="null"> You're lookin' swell, Dolly<br>I can tell, Dolly<br>You're still glowin'</span>, you're still crowin' |
| 56 | + </p> |
| 57 | + <p> |
| 58 | + You're still goin' strong |
| 59 | + </p> |
| 60 | + <p> |
| 61 | + I feel the room swayin' |
| 62 | + </p> |
| 63 | + <p> |
| 64 | + <span class="marker-animation" data-ma_duration="6s">While the band's playin'<br>One of our old favorite songs from way back when</span> |
| 65 | + </p> |
| 66 | + <p> |
| 67 | + So, golly, gee, fellas |
| 68 | + </p> |
| 69 | + <p> |
| 70 | + <span class="marker-animation" data-ma_stripe="true" data-ma_color="#00ffcc">Have a little faith in me, fellas<br>Dolly, never go away</span> |
| 71 | + </p> |
| 72 | + <p> |
| 73 | + Promise, you'll never go away |
| 74 | + </p> |
| 75 | + <p> |
| 76 | + Dolly'll never go away again |
| 77 | + </p> |
| 78 | + |
| 79 | + <p> |
| 80 | + <a class="btn btn-light-blue reset-animation">Reset</a> |
| 81 | + </p> |
| 82 | + </div> |
| 83 | +</div>` ); |
| 84 | + |
| 85 | + $( '#app .marker-animation' ).markerAnimation(); |
| 86 | + $( '#app .reset-animation' ).on( 'click', () => { |
| 87 | + $( '#app .marker-animation' ).markerAnimation( 'refresh' ); |
| 88 | + } ); |
| 89 | +} ); |
0 commit comments