Hover Animation

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jan 19, 2013 9:59 pm
Reply with quote
Report this post
Hi,
Is it possible to make the modules custom html with just an image in, to do the hover animation like the demo??
Is it a different way to do it.
Here is the link http://nikosaliazis.com/fashion/
Also i would like to ask why I got in some module so big border...
Thanks
User avatar
Fresh Boarder

Konrad M
Tue Jan 22, 2013 4:42 pm
Reply with quote
Report this post
Hi,
you have so big space becasue you put img in <p>. This elements have own margines as same as container. Please try use suffix clear. About animation please try add suffix to your modules for example 'my suffix' and then please try add to override.css
Code: Select all
.mysuffix img {
.itemImageBlock img {
height: auto;
max-width: 100%;
width: 100% !important;
-webkit-transition: all 0.3s ease 0s;
-moz-transition: all 0.3s ease 0s;
-o-transition: all 0.3s ease 0s;
-ms-transition: all 0.3s ease 0s;
transition: all 0.3s ease 0s;
}
}
.mysuffix img:hover {
-webkit-transform: scale(1.25) rotate(-7deg);
-moz-transform: scale(1.25) rotate(-7deg);
-o-transform: scale(1.25) rotate(-7deg);
-ms-transform: scale(1.25) rotate(-7deg);
transform: scale(1.25) rotate(-7deg);
}

and remember to enable override.css option in template settings.
User avatar

GK User
Mon Feb 04, 2013 9:29 pm
Reply with quote
Report this post
With the given CSS I have a problem with the transition effect not working. i see the same problem on the example provided before.

please help get the transition working with a custom image
User avatar
Fresh Boarder

Konrad M
Wed Feb 06, 2013 10:02 am
Reply with quote
Report this post
Please change code I gave you to this one:
Code: Select all
.mysuffix img {
        height: auto;
        max-width: 100%;
        width: 100% !important;
}
.mysuffix img {
   -webkit-transition: all 0.4s ease;
   -moz-transition: all 0.4s ease;
   -o-transition: all 0.4s ease;
   -ms-transition: all 0.4s ease;
   transition: all 0.4s ease;
}
.mysuffix:hover img {
   -webkit-transform: scale(1.2) rotate(-7deg);
   -moz-transform: scale(1.2) rotate(-7deg);
   -o-transform: scale(1.2) rotate(-7deg);
   -ms-transform: scale(1.2) rotate(-7deg);
   transform: scale(1.2) rotate(-7deg);
}
User avatar


cron