I have the following code -
render() {
return <DeviceThemeProvider><GlobalStyle /><div>
<div class="grids">
<div id="grid">
<div class="grid-element">
<img class="displayed" src={process.env.PUBLIC_URL + '/img/692.png'} />
</div>
Now I would like to replace the image 692.png with 693.png.
I understand how to do with setState
/src
. But how to do it with some effect? Fade out/fade in? I found CSS transition
property. Could it be used with React somehow?
What if I need to replace it with no image
and replace no image
with 692.png?