Skip to content
Advertisement

how to show arrow only when hover slideshow html css javascript

I am trying to show arrows only when the mouse hover on the image.

Is there any way this can be done in CSS, html or Javascript.

Any help will be appreciated.

Thanks.

JavaScript

Advertisement

Answer

if you want the arrows to appear when hovering over the image – one way is to have the css as follows (I’ve dummied up image and arrows as pure text, but the principal remains the same)

JavaScript
JavaScript

I also added a transition to the opacity, because I like transitions :p

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement