Script.aculo.us- Move Effect - script.aculo.us

What is script aculo us move effect?

Description

This effect moves an element. Its older version has the call impact.MoveBy.

In order for this effect to paintings correctly throughout all browsers, the detail to be moved should be a positioned element. that is, it need to have a CSS position rule carried out, and the fee of the position may be either of absolute or relative.

Syntax

you could use one of the following two forms to use this impact –


Effect-Specific Parameters

This effect has the following parameters in addition to the common parameters.

Option

Description

x-coordinate

Specifies the change in horizontal position. A negative x value moves the element to the left.

y-coordinate

Specifies the change in vertical position. A negative value moves the element "up" the page.

mode

Specifies the positioning mode of the element. It can be eitherabsoluteorrelative. By default, isrelative.

Example

It will slowly move the target element down and to the right by 10 pixels each.

This will produce following result –

script.aculo.us - Move Effect


All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

script.aculo.us Topics