Answer the question
In order to leave comments, you need to log in
How to upload an image without JS?
Hello!
how to load an image on button click into span/div?
Without js, somehow nothing comes into the head of a simple person ...
Answer the question
In order to leave comments, you need to log in
It can be loaded in advance into a block, the button can be made a container for a block with a picture. Set the maximum height to 0 for the block, and set the maximum height for "container:hover > block" to be over 9000. Then spice it up with transitions and a transition-delay of over9000.
When the button is pressed, the style of the nested block with the image changes from zero height to normal, and the transition-delay maintains the height even after changing focus from the button to another element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question