473,657 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1725
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...@mat tkruse.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.JavascriptT oolbox.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.Transiti ons.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
2398
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 in one box by dragging them to another and sort them in the latter, and it works a treat. However, I'd now like to add a couple of buttons, "<<" and ">>" between
2
1750
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 that didn't work. In fact, I can not get them to work even as inline commands. I click on the DIV with the id of newMailList, I only get an errror. This is the HTML:
2
1484
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 drag-n-drop functionality. However, I'm not using any AJAX postbacks. This is been fine, as most of the drag-n-drop has been fairly simple and it's just been a matter of grabbing an array in javascript and passing it back with a standard postback.
1
2679
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 (scroll:auto) properly. Otherwise items could not be dragged outside). When it comes to IE a div with a scroller does not work properly it just have the scroller but the items are not in it.
3
3930
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 anyone give me an example code for this? thanks marc
3
2915
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. That in turn opens a local file called 'DSK.html'. (GUI is the control panel, and DSK is the visual window) Here's that code
1
2801
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 variable number of Sortables. These are lists(ul's) that contain any number of items(li's), the li's can be dragged and dropped into other lists, so the user can basicly, drag and drop block-elements(the li's) into the different lists. Anyway, currently...
2
2640
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 the lines at the bottom very fast, the lines do not highlight. They only highlight if your mouse is over them for slightly longer. Sadly, I can't use the mootools library, so I am hoping someone can point me in the right direction. I am...
4
1684
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"> netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.