Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stop carousel from scrolling with few events (#397) #410

Closed
wants to merge 2 commits into from

Conversation

yashsaraswat2004
Copy link

Description

Updated the carousel behavior to improve user experience.
Carousel autoplay
Screenshot (77)
now only activates when there are more than 4 events.
When there are 4 or fewer events, the carousel stops autoplay to avoid obvious repetition.
This change ensures smoother navigation, particularly on the homepage where the looping of few events was noticeable.
Related issue(s)

Fixes #397

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for peaceful-ramanujan-288045 failed.

Name Link
🔨 Latest commit 8cf663e
🔍 Latest deploy log https://app.netlify.com/sites/peaceful-ramanujan-288045/deploys/670f91da45c6dd000808cca6

Copy link
Member

@AceTheCreator AceTheCreator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yashsaraswat2004 Please kindly fix your PR title to meet the required standard

@yashsaraswat2004 yashsaraswat2004 changed the title Changed slider.js to stop Homepage Carousel Movement for Fewer Events… fix: stop carousel from scrolling with few events (#397) Oct 5, 2024
@yashsaraswat2004
Copy link
Author

Thanks I have changed the PR title, Let me know if other changed neede

@AceTheCreator
Copy link
Member

@yashsaraswat2004 I'd have to close this PR, cuz this pr is doing same thing #405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop Homepage Carousel Movement for Fewer Events
2 participants