Skip to content

Preloading images #1301

Answered by becky-gilbert
Fariba-86 asked this question in Q&A
Dec 10, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @Fariba-86! In your timeline_variables array, it looks like your image file names are prefixed with img/. So if your images are all stored inside of a subfolder called "img", then you just need to include that in the file paths in the images array that you're using for preloading:

var images = ['img/11.png', 'img/5.png', 'img/43.png', 'img/00.png', 'img/13.png', 'img/12.png', 'img/3.png']

Does that fix the problem?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Fariba-86
Comment options

Answer selected by Fariba-86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants