Picsum photo gallery (basic)
- Add a
change
event listener to the slider- Hide the current image (the "polaroid" becomes black)
- Change the
src
attribute of the image tohttps://picsum.photos/id/x/600/600
withx
the value of the slider - Let the new image fade in over a time period of 4s
- Make this a 2-star exercise by disabling the slider until the fading effect is finished
TIP: change the attribute/propertydisabled
and use a callback function (which is executed when the effect is completed) as the second parameter in thefadeIn()
method