Action | Element(s) | Description |
hide | * | Hides the element |
show | * | Shows the element |
toggleVisibility | * | Toggles element visibility |
scrollTo(duration, position) | * | Scrolls element into view. duration (optional, default: 500 ms) specifies length of scroll animation. position (optional, default: top) specifies end position in viewport, is one of top, center, bottom |
focus | * | Give focus to target element |
goToSlide(index) | amp-carousel [type="slides"] | Advances carousel to slide index (integer) |
open | amp-image-lightbox amp-lightbox amp-sidebar |
Opens the component |
close | amp-image-lightbox amp-lightbox amp-sidebar |
Closes the component |
toggle | amp-sidebar | Toggles the sidebar state |
dismiss | amp-user-notification | Hides the notification |
submit | form | Submits the form |
play | amp-video amp-youtube amp-3q-player amp-ima-video amp-brid-player amp-dailymotion |
Plays... |




















































