-
AuthorPosts
-
November 6, 2015 at 12:11 am #531260
http://goo.gl/TfLoDX
On this page, below the 4 blog posts i have a 5 cell-row with 5 pictures with hyperlinks. I would like to replace the default image-hyperlink effects with this:
-webkit-transform: scale(1.2) rotate(5deg);
moz-transform: scale(1.2) rotate(5deg);
-o-transform: scale(1.2) rotate(5deg);
transform: scale(1.2) rotate(5deg) !important;
}
I’m going to use a css class for this container so the replacement of the default image-hyperlink effect is only for these 5 images.November 9, 2015 at 12:38 pm #532513Hi Dutchman!
if you want to give them a unique css class you need to turn on custom css field for all alb elements: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Regards,
AndyNovember 9, 2015 at 7:44 pm #532853Hi Andy, i allready have the custom css field but can you tell me how to disable the default image hyperlink effect and replace them with this one (only in the 5 cell row container)?
transform: scale(1.2) rotate(5deg) !important;
On this page,http://goo.gl/TfLoDX, below the 4 blog posts the 5 cell-row with 5 pictures with hyperlinks.November 10, 2015 at 6:51 pm #533588Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.page-id-731 #av-layout-grid-1 img:hover { -webkit-transform: scale(1.2) rotate(5deg); moz-transform: scale(1.2) rotate(5deg); -o-transform: scale(1.2) rotate(5deg); transform: scale(1.2) rotate(5deg) !important; } .page-id-731 #av-layout-grid-1 .image-overlay { display: none!important; }
Regards,
YigitNovember 10, 2015 at 9:46 pm #533693Hi Yigit! Could you take a look at the 5 cell-row with 5 pictures at my website please? Image 4 and 5 have the effects i would like to use to replace the default image-hyperlink effects. I would like a code that is not based on only this grid but a general replacement code so i can use it with css class at different containers :D
This is the code i’m using for image 4 and 5:.av-hover-grow:hover img { -webkit-transform: scale(1.2) rotate(5deg); moz-transform: scale(1.2) rotate(5deg); -o-transform: scale(1.2) rotate(5deg); transform: scale(1.2) rotate(5deg) !important; } .av-hover-grow img { -webkit-transition: transform .2s ease-out !important; -moz-transition: transform .2s ease-out !important; -o-transition: transform .2s ease-out !important; transition: transform .2s ease-out !important; }
- This reply was modified 9 years, 1 month ago by Dutchman.
November 12, 2015 at 6:36 am #534570Hi!
Edit the grid row element then add a unique id (ex: custom-grid) in the Section ID field. Append the id selector in your css modification. Example:
#custom-grid .av-hover-grow:hover img { -webkit-transform: scale(1.2) rotate(5deg); moz-transform: scale(1.2) rotate(5deg); -o-transform: scale(1.2) rotate(5deg); transform: scale(1.2) rotate(5deg) !important; }
Regards,
IsmaelNovember 12, 2015 at 9:04 am #534617Hi! I did excactly what you told me but nothing happens. (and i would like the transform and transition as in my previous reply here) Maybe you can login and take a look please.
November 16, 2015 at 5:23 pm #536677Hey!
change Ismael’s code to this one:
.custom-grid .av-hover-grow:hover img { -webkit-transform: scale(1.2) rotate(5deg); moz-transform: scale(1.2) rotate(5deg); -o-transform: scale(1.2) rotate(5deg); transform: scale(1.2) rotate(5deg) !important; }
and adjust as needed.
Best regards,
AndyNovember 16, 2015 at 9:38 pm #536892Hi, there is no difference. Nothing happens. To clear things up:http://goo.gl/TfLoDX
On this page, below the 4 blog posts i have a 5 cell-row with 5 pictures. The first 3 images have hyperlinks. The last 2 images don’t have hyperlinks (yet). I would like to use the effects from the last 2 images (the images without hyperlinks yet) to replace the default hyperlink effects from the first 3 images. The code from these last 2 images:.av-hover-grow:hover img { -webkit-transform: scale(1.2) rotate(5deg); moz-transform: scale(1.2) rotate(5deg); -o-transform: scale(1.2) rotate(5deg); transform: scale(1.2) rotate(5deg) !important; } .av-hover-grow img { -webkit-transition: transform .2s ease-out !important; -moz-transition: transform .2s ease-out !important; -o-transition: transform .2s ease-out !important; transition: transform .2s ease-out !important; }
But this code doesn’t apply to the first 3 images which have hyperlinks. How can i apply this code to images with hyperlinks? (only applied to this container with css class “custum-grid”)
Yigit allready gave me the code to disable the overlay effect:
.page-id-731 #av-layout-grid-1 .image-overlay { display: none!important; }
November 17, 2015 at 9:53 pm #537649Hey!
edit those 3 images in question and define a unique css class in “Aangepaste CSS Class”. Define the same unique css class for all three images. Then simply add your code to something like this:
.your-unique-css-class-for-all-three-images { }
or/and
.your-unique-css-class-for-all-three-images:hover { }
Best regards,
AndyNovember 18, 2015 at 9:01 am #537882Hi! Now the container+image has the effect. Only the image has to get the effect without the container itself. Please have look at image 1. (I’ve added the css class to the first image)
November 18, 2015 at 1:58 pm #538076Hi!
the missing thing was to activate “Image Hover effect” with “Yes, slightly increase image size” when editing the image in question. I changes it for your first image and not it’s working as expected for me. Can you confirm please?
Cheers!
AndyNovember 18, 2015 at 2:00 pm #538079Hey!
in addition you need to change the code you are using to this one:
.avia-image-container-inner .custom-grid:hover { -webkit-transform: scale(1.2) rotate(5deg); moz-transform: scale(1.2) rotate(5deg); -o-transform: scale(1.2) rotate(5deg); transform: scale(1.2) rotate(5deg) !important; } .avia-image-container-inner .custom-grid { -webkit-transition: transform .2s ease-out !important; -moz-transition: transform .2s ease-out !important; -o-transition: transform .2s ease-out !important; transition: transform .2s ease-out !important; }
I already changed it in your Quick CSS.
Cheers!
AndyNovember 18, 2015 at 8:19 pm #538526Andy you’re the master!!! Thank you very much! :D
November 19, 2015 at 11:22 am #538871Hi!
glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Regards,
Andy -
AuthorPosts
- The topic ‘default image hyperlink effects’ is closed to new replies.