mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
11 lines
226 B
JavaScript
11 lines
226 B
JavaScript
|
//--
|
||
|
//-- Scroller animation
|
||
|
//--
|
||
|
|
||
|
function Scroller(targetElement)
|
||
|
{
|
||
|
var p = [{style: '-tw-vertScroll', start: findScrollY(), end: ensureVisible(targetElement)}];
|
||
|
return new Morpher(targetElement,config.animDuration,p);
|
||
|
}
|
||
|
|