Still exist a moo-port of jquery-Arctext.js ?

61 views
Skip to first unread message

hamburger

unread,
Jul 12, 2012, 7:04:13 AM7/12/12
to mootool...@googlegroups.com
Again a question for an existing port of an jquery-Plugin.

Did somebody allready translated Arctext.js?

http://tympanus.net/codrops/2012/01/24/arctext-js-curving-text-with-css3-and-jquery/

Thanks for any hint in advance.

hamburger

unread,
Jul 13, 2012, 10:51:19 AM7/13/12
to mootool...@googlegroups.com
Hello,
i made a jsfiddle in jquery and tried to translate it to moo.
jquery = http://jsfiddle.net/p9UCP/2/

in moo I have some trouble with scoops.
Its there somebody who can help?

mootools = http://jsfiddle.net/p9UCP/4/
thx in advance



rasmusfl0e

unread,
Jul 13, 2012, 5:01:16 PM7/13/12
to mootool...@googlegroups.com
Yeah - it's basically a question of using the var keyword ;)

The dt*** vars need to be available for all the functions declared inside your IIFE - and the rest just need to be declared inside their respective encolsing functions.

And then there's Element::store; it only recieves a key and a value - not an object with keys and values (though that would be a cool feature).

It will work once the above is fixed. :)

hamburger

unread,
Jul 14, 2012, 8:54:58 AM7/14/12
to mootool...@googlegroups.com
thx rasmusfl0e,
to fix the element.store was easy.
                letter.store('x',xval);
                letter.store('y',( options.dir === 1 ) ? yval : -yval);
                letter.store('a',( options.dir === 1 ) ? angle : -angle);

the main problem I have is the "var keyword"
indeed.
there are:
    this.dtWord
    _self.dtWord
    dtWord

It makes me confused ...

Reply all
Reply to author
Forward
0 new messages