473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

enhancing motion in scriptaculous

hi guys

is there an extension for scriptaculous (or another library) that
allows you to create more organic/natural looking movement?

for example when an image slides across the screen, it does at a
variable speed, increasing at first then decreasing at the end.

I feel it would need to be able to do this before it can become a
viable substitute for flash, which i would love to see!

thanks

marc

Feb 19 '07 #1
7 1705
libsfan01 wrote
<snip>
is there an extension for scriptaculous (or another library)
that allows you to create more organic/natural looking
movement?
<snip>

That is completely the wrong way to go. You get smooth animation out of a
web browser running javascript by writing lean, efficient code. You will
not get it by starting with inefficient and bloated code and adding to
it.

Richard.

Feb 19 '07 #2
Richard Cornford wrote:
libsfan01 wrote
>is there an extension for scriptaculous (or another library)
that allows you to create more organic/natural looking
movement?
That is completely the wrong way to go. You get smooth animation out
of a web browser running javascript by writing lean, efficient code.
You will not get it by starting with inefficient and bloated code and
adding to it.
Don't listen to Richard. He leaves in 2001, when everything was coded from
scratch.

I don't know what you mean by "organic" but I think jQuery is the best
framework available, and it's "Interface Elements" add-on has a lot of good
effects:
http://interface.eyecon.ro/

The code is already "lean" and "efficient" and if you run the examples
you'll see that they run perfectly fine in your test browsers.

Richard's attitude is one of "if it's built on a framework, it must not be
as efficient as writing it from scratch" and he holds to this view despite
evidence to the contrary.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Feb 20 '07 #3
Matt Kruse wrote:
Don't listen to Richard. He leaves in 2001, when everything was coded
from scratch.
Lives.
He lives in 2001.
Not leaves.
Leaves would make no sense.
Lives.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Feb 20 '07 #4
Pi
On Feb 20, 7:50 am, "Matt Kruse" <newsgro...@mattkruse.comwrote:
Matt Kruse wrote:
Don't listen to Richard. He leaves in 2001, when everything was coded
from scratch.

Lives.
He lives in 2001.
Not leaves.
Leaves would make no sense.
Lives.

--
Matt Krusehttp://www.JavascriptToolbox.comhttp://www.AjaxToolbox.com
He codes, scripts and leaves in 2001?

[chuckle]

Feb 20 '07 #5
Matt Kruse wrote:
Matt Kruse wrote:
>Don't listen to Richard. He leaves in 2001, when everything was coded
from scratch.

Lives.
He lives in 2001.
Not leaves.
Leaves would make no sense.
Lives.
I leaved a lot of times in 2001, and still my code doesn't make any sense.
Does that make sense?

Regards,
Erwin Moller

Feb 20 '07 #6
like this:

new Effect.MoveBy( 'prefooter', 400, 0 , {duration: 4, transition:
Effect.Transitions.slowstop});
there are other effect transitions available. Check the wiki. You may
need the latest scriptaculous version.

it's tricky to get scriptaculous (or any javascript image effects in
my very limited -- read: weeks -- experience to run quite as smoothly
as flash. It seems impossible to scale image smoothly.

Feb 20 '07 #7
Hi,

libsfan01 wrote:
hi guys

is there an extension for scriptaculous (or another library) that
allows you to create more organic/natural looking movement?

for example when an image slides across the screen, it does at a
variable speed, increasing at first then decreasing at the end.

I feel it would need to be able to do this before it can become a
viable substitute for flash, which i would love to see!

thanks

marc
The object I use for motion can be found here:
http://www.galasoft-lb.ch/myjavascri...oned-node.html

The default function used to calculate the motion is a deceleration only
(I use a function of the square of the distance to target), but it can
be easily replaced by your own function. Adding an effect like you
described should be easy enough.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 22 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: OwlHoot | last post by:
I am using Thomas Fuchs's amazing drag-and-drop JavaScript library available at: http://wiki.script.aculo.us/scriptaculous/show/DragAndDrop to allow the user to select a subset of items listed...
2
by: Jake Barnes | last post by:
I've read over the documentation for these effects: http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemo I want to include them on my page. I tried attaching using onload, but...
2
by: darrel | last post by:
I've been working on a side project off and on (more off than on) for a year or so. Overtime, it's become a bit of a frankenstein. It uses the Scriptaculous javascript library for a lot of...
1
by: gezerpunta | last post by:
Hi folks :) We use scriptaculous draggables inside a scrollable div. Everything works fine if we turn on the option "Ghosting" (this enables items to be dragged outside the div with a sroller...
3
by: libsfan01 | last post by:
hi i have a page which contains an visible nav down the left-hand side. when you click a button it needs to appear. i thought it would be cool to use scriptaculous to make it slide down. can...
3
by: ChiliFingerX | last post by:
I am at the end of my rope. I wrote an application, it runs locally on my laptop, nothing to do with the Internet or client/server stuff. Using Firefox 2.0 I open my main 'GUI.html' file. ...
1
Jezternz
by: Jezternz | last post by:
Scriptaculous needs an official forum but does not have one so I am asking here :). note you will need to be familiar with scriptaculous to help me here. Basicly I have a script that has a...
2
by: AndrewC | last post by:
I am using the Scriptaculous/Prototype libraries to build a project and I really want to have an effect like the mootools download page (http://www.mootools.net/download) where when you mouse over...
4
by: JacK | last post by:
Does any peo^le can help me with this script? Event.observe seem to be off Thank's in advance HTML> <BODY> <script type="text/javascript"> ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.