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

Auto appear all images on a page with a delay of 1sec (except first image) #23

Open
jmuheim opened this issue Feb 15, 2025 · 1 comment

Comments

@jmuheim
Copy link

jmuheim commented Feb 15, 2025

I love the autoappear option:

	autoappear: true,
	autoelements: {
		'p img, iframe': {'animation': 'animate__zoomIn', 'speed':'slower', 'delay':'1000'}
	}

This makes each image appear one after the other (1 sec between). But it also means that the first image waits 1 sec before it appears. I'd love it to appear immediately though. Is there an easy way to achieve this? I.e. override the delay for only the first image (0sec)?

Thank you.

@Martinomagnifico
Copy link
Owner

Normally the delay is only set on subsequent elements, as is possible to see in inspect mode. It seems now that, when changing the delay, it will also apply it to the first. I'll look into it.

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

2 participants