Anyway, something pretty quick, and perhaps chaining and stuff is better,
but yeah: http://jsfiddle.net/KM8LD/






On Wed, Jan 16, 2013 at 2:59 AM, Arian Stolwijk <[email protected]>wrote:

> The '90 called, they want their <blink> tag back!
>
>
> On Wed, Jan 16, 2013 at 2:31 AM, Mushr00m <[email protected]> wrote:
>
>> Don't do what ?
>>
>> Le mercredi 16 janvier 2013 02:30:18 UTC+1, Nutron a écrit :
>>>
>>> DON'T DO IT!
>>>
>>>
>>> On Tue, Jan 15, 2013 at 5:29 PM, Mushr00m <[email protected]> wrote:
>>>
>>>> Hi !
>>>>
>>>> I'm using the tutorial from David Walsh (http://davidwalsh.name/**
>>>> dwprogressbar-2-stepping-**events-mootools-progress-bar<http://davidwalsh.name/dwprogressbar-2-stepping-events-mootools-progress-bar>)
>>>> to create a progressbar, and it's working for the moment. But my problem is
>>>> that I want to add a simple blinking effect when the bar is 100% and stop
>>>> it when it's not.
>>>> So far I've this for my class : http://jsfiddle.net/gez5q/1/
>>>>
>>>> My problem are :
>>>>
>>>>    1. How to create my call to the blinking effect directly in my
>>>>    class ? When I want to create a function "onComplete" or "complete" it's
>>>>    never call
>>>>    2. How to be able to start and stop/cancel my blinking ? I know how
>>>>    to run it but how can I find it later to stop it as it will just be 
>>>> created
>>>>    in the blink function o the class...
>>>>    3. For the blinking part I've searched everywhere but couldn't find
>>>>    a "simple" way to do it so I do the following and I don't think it's the
>>>>    best way to add it to a class, how would you do ?
>>>>
>>>> *var fx_blink = new Fx.Tween(progressbar.options.container, {
>>>>         duration: 300,
>>>>         property: 'opacity'
>>>>     });
>>>>     var periodical;
>>>>     var fx = function() {
>>>>         fx_blink.start(0.7).chain(function() {
>>>>             fx_blink.start(1);
>>>>         });
>>>>         return fx;
>>>>     };*
>>>> *periodical = fx().periodical(900);*
>>>>
>>>> I know it's a lot of question but I hope you could help me to
>>>> understand how to do it.
>>>> Thanks
>>>>
>>>
>>>
>

Reply via email to