Open dao-phuong opened 4 years ago
Currently, It look pretty sharp and sudden when image src is changed. To make it more smoothly, we can add fade in fade out effect when switching image.
This is a solution I found: https://stackoverflow.com/questions/23583245/add-transition-while-changing-img-src-with-javascript
https://stackoverflow.com/a/23584060/9046268 This looks like a good solution we can inject extra img tag with JS while initializing.
Currently, It look pretty sharp and sudden when image src is changed. To make it more smoothly, we can add fade in fade out effect when switching image.
This is a solution I found: https://stackoverflow.com/questions/23583245/add-transition-while-changing-img-src-with-javascript