Hello,
How can I change the hover image direction in main page from right to left..
Hello,
How can I change the hover image direction in main page from right to left..
Hey,
I'm not sure if this possible without a major function rewrite. The reason is that Kriesi uses the pos.left attribute (and there's no corresponding pos.right - this would require some complex calculations). However you can try to replace following code in js/custom.js:
item.mouseover(function(e)
{
border_top = viewport.scrollTop();
border_right = viewport.width();
pos = get_cursor_position(e);
tooltip.css({left:pos.left, top:pos.top, opacity:options.opacity, display:"none", visibility:"visible"}).stop().fadeIn(400);
})
.mousemove(function(e)
{
pos = get_cursor_position(e);
tooltip.css({left:pos.left, top:pos.top});
})
with:
item.mouseover(function(e)
{
border_top = viewport.scrollTop();
border_right = viewport.width();
pos = get_cursor_position(e);
tooltip.css({right:pos.left, top:pos.top, opacity:options.opacity, display:"none", visibility:"visible"}).stop().fadeIn(400);
})
.mousemove(function(e)
{
pos = get_cursor_position(e);
tooltip.css({right:pos.left, top:pos.top});
})Thanks for your help
I have tried this. The hover image changed to the left but the distance between the cursor and the image is not regular when I move the mouse
And the frame of the image is not completed
You must log in to post.