Hi I'm new to web development. I'm just working through a few exercises to practise my skills.
I'm currently working on an image viewer exercise. Using divs I have a large image and several thumbs positioned on the page. The image swap works great. My problem is with the fade/appear behaviour. I want it so that when I select thumb1 it fades to 50% and when I select thumb2, thumb1 returns to 100% and thumb2 fades to 50% and so on.
Currently when I select thumb1 it fades to 50% and when I select thumb2 thumb1 appears at 25% and returns to 50%.
Can anyone help me?
I'm currently working on an image viewer exercise. Using divs I have a large image and several thumbs positioned on the page. The image swap works great. My problem is with the fade/appear behaviour. I want it so that when I select thumb1 it fades to 50% and when I select thumb2, thumb1 returns to 100% and thumb2 fades to 50% and so on.
Currently when I select thumb1 it fades to 50% and when I select thumb2 thumb1 appears at 25% and returns to 50%.
Can anyone help me?