SpeckleDigital Posted February 25, 2020 Share Posted February 25, 2020 Site URL: https://quiet-conqueror.squarespace.com/ Hi all, Looking for some assistance with 7.1. I am trying to get the title / excerpt on the portfolio grid to show on hover (much like this effect here - http://demo.squarestud.io/grid-gallery-9) Here is what I have tried - /*Hover State on images*/ .portfolio-grid-basic { .grid-image:hover { img { -webkit-filter: brightness(0.4); -moz-filter: brightness(0.4); filter: brightness(0.4); } .portfolio-title { opacity: 1 !important; } .portfolio-title strong { opacity: 1 !important; } } img { -webkit-filter: brightness(0.9); -moz-filter: brightness(0.9); filter: brightness(0.9); transition: all ease-in-out 600ms !important; } .portfolio-title { p { max-width: 90% !important; } white-space: initial !important; text-overflow: initial !important; transform: translateY(-0.5em); -webkit-transform: translateY(-0.5em); -moz-transform: translateY(-0.5em); -ms-transform: translateY(-0.5em); } .portfolio-title { pointer-events:none !important; display: block !important; color: #fff !important; font-weight: 600; font-size: 20px; line-height: 25px; text-align: center !important; padding: 0px; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); transform: translate(-50%, -50%); width: 80%; opacity: 0; transition: all ease-in-out 600ms !important; } .portfolio-title strong { display: block; font-weight: 200; font-size: 15px; opacity: 1; transition: all ease-in-out 600ms !important; } .portfolio-title strong:before { display: block; text-align: center; } .portfolio-title p { padding-left: 10px; padding-right: 10px; margin: 0px; opacity: 0 !important; transition: all ease-in-out 600ms !important; } @media (max-width : 870px) { .portfolio-title { opacity: 1 !important; font-size: 11px !important; } .portfolio-title strong { display: none !important; opacity: 0 !important; } .portfolio-title a { display: block !important; } } @media (max-width : 768px) { .portfolio-title { opacity: 1 !important; font-size: 11px !important; } .portfolio-title strong { display: none !important; opacity: 0 !important; } .portfolio-title a { display: block !important; } } } URL is https://quiet-conqueror.squarespace.com/ Password is squarespace. Thanks so much! Link to comment
tuanphan Posted February 25, 2020 Share Posted February 25, 2020 What is site access password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
SpeckleDigital Posted February 25, 2020 Author Share Posted February 25, 2020 @tuanphan the password is squarespace Link to comment
Panos_vsl Posted February 26, 2020 Share Posted February 26, 2020 This is a great question/request. Its logical that on portfolio block to be able to display a short text along with the title. Its a very logical thing that probably many people will want including me! I am trying to figure it out with no luck up to now. Link to comment
tuanphan Posted February 26, 2020 Share Posted February 26, 2020 23 hours ago, AshleighLauren said: @tuanphan the password is squarespace 14 minutes ago, Panos_vsl said: This is a great question/request. Its logical that on portfolio block to be able to display a short text along with the title. Its a very logical thing that probably many people will want including me! I am trying to figure it out with no luck up to now. Add to Home > Design > Custom CSS a.grid-item { position: relative; } .portfolio-text { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 999; width: 50% !important; } a.grid-item:hover .portfolio-title { opacity: 1 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Panos_vsl Posted February 26, 2020 Share Posted February 26, 2020 9 minutes ago, tuanphan said: Add to Home > Design > Custom CSS a.grid-item { position: relative; } .portfolio-text { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 999; width: 50% !important; } a.grid-item:hover .portfolio-title { opacity: 1 !important; } This moves the title on mouse over from the center of the thumbnail to the corner. I guess what @AshleighLauren is trying to achieve and also me is somehow this: Link to comment
tuanphan Posted February 27, 2020 Share Posted February 27, 2020 1 hour ago, Panos_vsl said: This moves the title on mouse over from the center of the thumbnail to the corner. I guess what @AshleighLauren is trying to achieve and also me is somehow this: The above code, for https://quiet-conqueror.squarespace.com/?_ga=2.73689814.59696825.1570102444-1974466938.1557726403 I'm not sure it will work for other sites 😄 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
GHG Posted July 17, 2020 Share Posted July 17, 2020 Hi, would it be possible to have the hover simply as a solid colour (without any text)? Thank you Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.