Add and remove opacity for thumbnails with javascript; add ease-in-out animation for opacity change.