Hover Effect On Categories

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHover Effect On Categories

This topic has been marked as resolved.

Is there a way to get the same hover effect for category images as you get with product images – the effect that makes the image stand out in box with a shadow with all the other images on the page faded.

For instance on this page the category images have no hover effect but the products do:

http://shoppica.net/Electronics/Digital-Cameras

Also what files need to be edited to change the css of the category images (add image borders etc)?

Thanks!

April 20, 2012 at 9:57 pm #8225
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
April 23, 2012 at 11:21 am #8252

Thanks very much. I’ve now got the fade out effect (achieved as you described in number 1 above) although I am having some difficulty with the box effect.

I found in screen.css the following:

.s_item:hover {
  z-index: 10;
  padding: 20px !important;
  background: #fff;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  -o-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

So I copied this and tried to do the similar for the categories by adding at the end of the s_subcategory rules:

.s_subcategories:hover {
 z-index: 10;
  padding: 20px !important;
  background: #fff;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  -o-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

However this makes a box around all the categories on that page and not just the one I’m hovering over (although the fade effect is still working as should be). I tried changing my code to .s_subcategories ul li:hover but that didn’t fix it.

  • This reply was modified 4396 days ago by  mallo82.
  • This reply was modified 4396 days ago by  mallo82.
April 23, 2012 at 6:33 pm #8259
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
April 24, 2012 at 10:48 am #8291

Perfect! Thank you very much!

Almost all there now! :)

April 24, 2012 at 2:15 pm #8304

Glad we’ve helped, mate :)

Best,
ThemeBurn team

April 26, 2012 at 10:16 am #8335
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.