October 2017
Intermediate to advanced
370 pages
8h 57m
English
| 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 ... |
Read now
Unlock full access