I have a project that need to use image slideshow with 3d hover effect so I use Flexslider and 3d hover effect code
var move = $(".slider");
$(document).on("mousemove",function(e) {
var ax = -($(window).innerWidth()/2- e.pageX)/300;
var ay = ($(window).innerHeight()/2- e.pageY)/285;
move.attr("style", "transform: rotateY("+ax+"deg) rotateX("+ay+"deg);-webkit-transform: rotateY("+ax+"deg) rotateX("+ay+"deg);-moz-transform: rotateY("+ax+"deg) rotateX("+ay+"deg)");
});
But the result is the 3d hover effect working but any link button in the slider not working ( the navigation next and prev not working and the pagination circle not working )
I tried at to change my .attr to .css
move.attr("style", "transform: rotateY("+ax+"deg) rotateX("+ay+"deg);-webkit-transform: rotateY("+ax+"deg) rotateX("+ay+"deg);-moz-transform: rotateY("+ax+"deg) rotateX("+ay+"deg)");
and the result still same, the Transform Rotate CSS make all the clickable not working. Any idea how to fix this problem ?
I have a project that need to use image slideshow with 3d hover effect so I use Flexslider and 3d hover effect code
But the result is the 3d hover effect working but any link button in the slider not working ( the navigation next and prev not working and the pagination circle not working )
This is my full code
I tried at to change my .attr to .css
move.attr("style", "transform: rotateY("+ax+"deg) rotateX("+ay+"deg);-webkit-transform: rotateY("+ax+"deg) rotateX("+ay+"deg);-moz-transform: rotateY("+ax+"deg) rotateX("+ay+"deg)");
and the result still same, the Transform Rotate CSS make all the clickable not working. Any idea how to fix this problem ?