Skip to main content

Search and Top Navigation

#3914 closed feature (plugin)

Opened January 23, 2009 09:56AM UTC

Closed October 19, 2012 09:14PM UTC

New effect - "scrollview" - scroll a dom element smoothly into view

Reported by: biGGs Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.effects.* (individual effect) Version: 1.6rc5
Keywords: effects,scrollview Cc:
Blocked by: Blocking:
Description

Some weeks ago, I switched over using the ui framework. So I rewrote some of my plugins to use the effects/widget mechanism. With this attached effect, I want to begin sharing some of my work.

Tested on IE6/7,FF,Safari,Opera,Chrome.

The effect is quite easy, but by the time of writing it, I have not seen it yet on jQuery. Instead of the ScrollTo plugin, which scrolls to the top left corner of an element, this plugin scrolls only as much as neccessary, so the element is in view.

Just give it a try. Take an element, which is not fully in the viewport, and call it like any other effect:

$(element).effect('scrollview', {}, 500);

Perhaps you want to add it to the effects library.

Attachments (1)
Change History (5)

Changed May 07, 2009 11:26AM UTC by jzaefferer comment:1

milestone: TBD1.8

Changed March 27, 2011 01:30PM UTC by gnarf comment:2

There are a few solid plugins that handle scrollTo type functionality already - also - this doesn't really have the "effects" scheme - there isn't a show/hide mode for "scrollTo"

Changed June 18, 2011 06:54AM UTC by gnarf comment:3

milestone: 1.9TBD

Changed October 11, 2012 09:02PM UTC by scottgonzalez comment:4

milestone: TBD1.10.0

Changed October 19, 2012 09:14PM UTC by mikesherov comment:5

resolution: → plugin
status: newclosed