How can I set a image that will stay there until all configurations are set?
Can you explain a bit more about the task that you have and what you're trying to achieve please? I can't be sure I understand with what you've said so far.
I want that this image stays until all configurations are set.
https://www.harveynorman.si/kotna-sedezna-garnitura-chicago-polipol
You will see on the right side there are three configurations. Can there be set that when a customer comes to the side, and until it chooses all of the configurations I would like that image that is on stays until it changes to another one. I hope I have explained well.
Hmm, that's going to be quite an involved task.
The template for the gallery area is here https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/view/frontend/template... and you can see it instantiates the gallery JS.
There is documentation on the gallery widget here: http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/widgets/widget_gallery.html
Depending on your specific requirements, your approach might be to not immediately instantiate the gallery on page load, instead triggering it once all items have been configured (if I've understood your requirements).
Or if you want to show the gallery, you just don't want it to automatically scroll between images then you're going to need to customise the JS for the gallery.