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

Loading icon not showing during loading #134

Open
warudin opened this issue Aug 25, 2017 · 3 comments
Open

Loading icon not showing during loading #134

warudin opened this issue Aug 25, 2017 · 3 comments

Comments

@warudin
Copy link

warudin commented Aug 25, 2017

Hi!

I'm trying to implement Animsition. It works almost fine, except for the loading icon. It's not directly showing up after clicking a link, only when the new page is almost completely loaded. I'm not sure where things are going wrong.

I've added the .animsition class to a wrapper div directly after the body tag, these are my settings:

jQuery(window).ready(function() {
	jQuery(".animsition").animsition({
		inClass: 'fade-in',
		outClass: 'fade-out',
		inDuration: 1500,
		outDuration: 800,
		linkElement: '.animsition-link',
		linkElement: 'a:not([target="_blank"]):not([href^="#"])',
		loading: true,
		loadingParentElement: 'body', //animsition wrapper element
		loadingClass: 'animsition-loading',
		loadingInner: '', // e.g '<img src="loading.svg" />'
		timeout: false,
		timeoutCountdown: 5000,
		onLoadEvent: true,
		browser: ['animation-duration', '-webkit-animation-duration'],
		// "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
		// The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
		overlay: false,
		overlayClass: 'animsition-overlay-slide',
		overlayParentElement: 'body',
		transition: function(url) {
			window.location.href = url;
		}
	});
});
@BearBritches
Copy link

I have same issue

@ystallonne
Copy link

for those with this issue, try:
loadingParentElement: 'html'

@aryabeth
Copy link

i got same issue,
it doesn't work @ystallonne

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

No branches or pull requests

4 participants