ScrollToOptions
E1016613
ScrollToOptions is a web API dictionary object used to configure scrolling behavior—such as position and smoothness—for methods like window.scrollTo and Element.scrollTo.
Statements (40)
| Predicate | Object |
|---|---|
| instanceOf |
JavaScript object type
ⓘ
Web API dictionary ⓘ |
| availableIn |
Element interface
ⓘ
Window interface ⓘ |
| behaviorAllowedValue |
auto
ⓘ
smooth ⓘ |
| behaviorDefaultValue | auto ⓘ |
| behaviorDescription | Specifies whether scrolling is instant or animated ⓘ |
| canBeOmitted | yes ⓘ |
| canExpressRelativeScroll | no (absolute only; relative uses ScrollToOptions with scrollBy methods) ⓘ |
| compatibleWith | modern browsers supporting smooth scrolling ⓘ |
| definedBy | WHATWG NERFINISHED ⓘ |
| definedInSpecification | CSSOM View Module NERFINISHED ⓘ |
| hasProperty |
behavior
ⓘ
left ⓘ top ⓘ |
| introducedFor | smooth scrolling support ⓘ |
| isOptionalArgumentFor |
Element.scrollTo()
ⓘ
window.scrollTo() ⓘ |
| language | JavaScript NERFINISHED ⓘ |
| leftCoordinateSpace | CSS pixels ⓘ |
| leftDescription | Specifies the number of pixels to scroll horizontally ⓘ |
| propertyType |
behavior:ScrollBehavior
ⓘ
left:number ⓘ top:number ⓘ |
| relatedType | ScrollToOptions dictionary in TypeScript lib.dom.d.ts ⓘ |
| scrollOrigin | top-left corner of the scrollable area ⓘ |
| standardStatus | Living Standard ⓘ |
| supportsPartialSpecification | yes GENERATED ⓘ |
| topCoordinateSpace | CSS pixels ⓘ |
| topDescription | Specifies the number of pixels to scroll vertically ⓘ |
| usedFor |
configuring scroll animation behavior
ⓘ
configuring scroll position ⓘ |
| usedWithMethod |
Element.scroll()
ⓘ
Element.scrollBy() ⓘ Element.scrollTo() ⓘ window.scroll() ⓘ window.scrollBy() ⓘ window.scrollTo() ⓘ |
| webPlatform | DOM NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.