[ANN] Alpha version of scripty2 (script.aculo.us' next major version!) out now

2 views
Skip to first unread message

madrobby

unread,
Jun 26, 2009, 3:38:27 AM6/26/09
to Prototype & script.aculo.us
Hi peeps!

The alpha of scripty2 is out, please head to http://scripty2.com to
see the demos and grab a copy.

Also comes with on and offline documentation (probably the most
requested feature!), courtesy of http://pdoc.org.

This first release focuses almost exclusively on the complete rewrite
of the effects engine, which is now much more flexible and allows for
some pretty nifty tricks (but see the demos!).

Note it depends on Prototype 1.6.1_rc3 (a development copy and a
minified version are included with the scripty2 download).

Also note that the API is not final yet, and it is not 100% compatible
with the old effects API, major changes include:

- Namespacing: now effects are called in this format: new s2.fx.Morph
(...)
- Reusable effects: need to call .play() on the effects instance,
can .cancel() and .finish()
- Default duration is now 0.2 secs
- Transitions are much more versatile

If you use effects in the preferred $('element_id').morph() format,
this still works and is encouraged.

A more thorough article and tutorial are forthcoming, will post once
it's out.

Please discuss this alpha release on the new group:
http://groups.google.com/group/scripty2

Have fun!
Best,
Thomas

Alex McAuley

unread,
Jun 26, 2009, 3:58:34 AM6/26/09
to prototype-s...@googlegroups.com
Looks very nice, well done !

Richard Quadling

unread,
Jun 26, 2009, 4:05:17 AM6/26/09
to prototype-s...@googlegroups.com


2009/6/26 Alex McAuley <webm...@thecarmarketplace.com>
Very nice work. Thank you.

--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

waldro...@gmail.com

unread,
Jun 26, 2009, 9:26:32 AM6/26/09
to prototype-s...@googlegroups.com
very exciting.... on my phone at the dog park and now i can't wait to get to the office! play time!

Rick Waldron

unread,
Jun 26, 2009, 12:04:05 PM6/26/09
to prototype-s...@googlegroups.com
Thomas,

Is there any specifics we should know about (things no longer available)? I just plugged in s2.js to a page that has one element that will shake()

Firebug says:

$(element).shake() is not a function :\


I chose that one arbitrarily...




Rick

Radoslav Stankov

unread,
Jun 27, 2009, 6:37:49 AM6/27/09
to Prototype & script.aculo.us
As far as I know scripty2 is not dropin replacements. It is a totally
new project. As far the only 'old' effects are morph / fade / appear
and the main change Effect variable is no logger in play.

But a part of that it is really awesome effect engine. And as an open
source project any one could write old Effect.* to new scripty2
effects.

Rick Waldron

unread,
Jun 27, 2009, 12:49:34 PM6/27/09
to prototype-s...@googlegroups.com
Right... I've come to this conclusion. Anyway, one the examples here: http://scripty2.com/doc/scripty2%20fx/element.html#morph-class_method

$('element_id').morph('width:500px;height:500px', {
duration: 4,
transition: '',
delay: .5,
propertyTransitions: {
width: 'mirror', height: 'easeInOutCirc'
},
after: function(){ alert('finished'); }
});

throws an error.

this.options.transition is not a function

I forked and fixed it in base.js, its commited in my git fork if you want it.

Rick

http://github.com/rwldrn
Reply all
Reply to author
Forward
0 new messages