# scroll-to **Repository Path**: mirrors_component/scroll-to ## Basic Information - **Project Name**: scroll-to - **Description**: Smooth window scrolling with requestAnimationFrame and the Tween component - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # scroll-to Smooth window scroll to position with requestAnimationFrame and [Tween](https://github.com/component/tween). ## Installation $ component install component/scroll-to ## API ### scrollTo(x, y, [options]) Scroll to the given point `(x, y)` with the given `options`: - `ease` easing function defaulting to "out-circ" (view [ease](https://github.com/component/ease) for more) - `duration` animation duration defaulting to `1000` ```js var scrollTo = require('scroll-to'); scrollTo(500, 1200, { ease: 'out-bounce', duration: 1500 }); ``` ## License MIT