Interesting effect

Hi,

I didn’t look at the code at all but you could do something in css like this for modern browsers.

http://www.pmob.co.uk/temp2/hover-switch.html

The css and html is all in the head so just view source (bear in mind I just knocked this up in 5 minutes so could be greatly improved upon).

I’ve also put it in a codepen if you want to play around with it:

The example you linked to is obviously using a script for the drag effect and if you want that exact functionality then it will need to be scripted.

1 Like