Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Specialized Areas/Styles/Zoom Catalog Image on Hover/CSS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
Zoom - in catalog item image on mouse hover.
*/
.catalog-item-image:hover{ /* OOB catalog item image class */
transform: scale(2); /* 200% zoom */
}
/*
Zoom - in catalog item short description on mouse hover.
*/
.sc-cat-item-short-description:hover{ /* OOB catalog item short description class */
transform: scale(1.2) translateX(15rem); /* 120% zoom and 15rem right shift*/
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**How to use**
1. Add this css code to "Page specific css" on "sc_cat_item" page for Service Portal.
2. Add this css code to "Page specific css" on "esc_sc_cat_item" page for Employee centre portal
3. This can also be used in css includes at theme level.
4. If your portal is customised and different pages are used for catalog items through Page Route Maps, use this in your pages.

**Use Case**
1. Many product catalogs have small images, organisations don't want to change that at backend but want to give the user the ability to see a zoomed-in image.
Loading