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

Add animation duration support #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add animation duration support #52

wants to merge 1 commit into from

Conversation

webevasion
Copy link

@webevasion webevasion commented Oct 12, 2018

Add animationDuration to default config variables and replace the animation duration by the variable.
It can be used in the init function.

$(document).alton({
	fullSlideContainer: 'full', // Tell Alton the full height container
	singleSlideClass: 'slide', // Tell Alton the full height slide class
	useSlideNumbers: true, // Set to false if you don't want to use pagination
	slideNumbersBorderColor: '#fff', // Set the outside color of the pagination items (also used for active)
	slideNumbersColor: 'transparent', // Set the inner color of the pagination items (not active)
	bodyContainer: 'pageWrapper', // Tell Alton the body class,
	animationDuration: 375, //Animation duration (in ms).
});

Add animationDuration to default config variables and replace the animation duration by the variable.
It can be used in the init function.
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.

1 participant