-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fix: slides smooth scroll animation (#133)
* fixed selector for slides container * rm tabindex -1 from slides: seems to prevent smooth scroll from functioning correctly? * pass html id value to gsap.to options: seems to work better than using .slide.active? * scroll to active slide on init: to make sure the slides navigation is always starting at slide 0 * better naming for method params * rm console.logs * upgraded dep gsap to 3.12.2 * added back tabindex=-1 on slides * focus active slide on scroll complete * rm redux logger in start script * clean-up SlidesContainer * fixed tests for SlidesContainer * improved test in SlidesContainer: - test: handleSlidesUpdate responds to state.slides changes - check for value of inert & aria-hidden attributes on all slides * added test for scroll complete * improved test "checks prefers-reduced-motion media query" * use gsap.fromTo for slide scroll - to avoid scrolling from first slide to third slide after the user searches their address. Fixes a side effect for bugfix for #131 * fixed test for SlidesContainer.scrollToActiveSlide * cleaned up activeSlide and activeSlideIndex setters logic
- Loading branch information
Showing
5 changed files
with
95 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters