Jump to content

[solved]how to add product image with effect


Recommended Posts

there on adipoli plugin page is a instruction:

 

 

How To Use

Enabling image hover effect is very simple. Place the below references inside your head tag.

1
2
3
<link href="css/adipoli.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="js/jquery.adipoli.min.js" type="text/javascript"></script>

If you need image hover on an image with id ‘image1′, call adipoli plugin like this:

1
2
3
<script>
      $('#image1').adipoli();
</script>

Adding Options:

1
2
3
4
$('#image1').adipoli({
    'startEffect' : 'normal',
    'hoverEffect' : 'popout'
});

 

just follow it,

instead of $('#image1') use $('img')

Link to comment
Share on other sites

how you did exactly?

what code and where you add?

just add below things to header.tpl

 

 

<link href="css/adipoli.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="js/jquery.adipoli.min.js" type="text/javascript"></script>
 
 
 
and also added
 
$('img').adipoli({
    'startEffect' : 'normal',
    'hoverEffect' : 'popout'
});
 
 
in product_list.tpl
 
 
No effects ....
Link to comment
Share on other sites

if you use code with brackets you have to use {literal} tags

 

{literal}

$('img').adipoli({
    'startEffect' : 'normal',
    'hoverEffect' : 'popout'
});
{/literal}
 
moreover, it will be much better if you will add this code in document ready function
Link to comment
Share on other sites

  • 2 weeks later...

thank you for confirmation that it works.

may i ask for something? 

you use only

{literal}
$('img').adipoli({
    'startEffect' : 'normal',
    'hoverEffect' : 'popout'
});
{/literal}

or 

{literal}
$( document ).ready(function() {
$('img').adipoli({
'startEffect' : 'normal',
'hoverEffect' : 'popout'
});
});
{/literal}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...