marleydesigns Posted January 3, 2023 Posted January 3, 2023 (edited) I'm trying to figure out a way to make these graphics flip or turn around on a hover to reveal a fact (written in the gallery description), as if you were turning over a playing card. if this possible to do with a grid gallery, or is there a better alternative? https://trivium-trivia.squarespace.com/content pw: manifest Edited January 3, 2023 by marleydesigns
Solution Beyondspace Posted January 4, 2023 Solution Posted January 4, 2023 (edited) 18 hours ago, marleydesigns said: I'm trying to figure out a way to make these graphics flip or turn around on a hover to reveal a fact (written in the gallery description), as if you were turning over a playing card. if this possible to do with a grid gallery, or is there a better alternative? https://trivium-trivia.squarespace.com/content pw: manifest There are some effect you can try on my showcases Gallery Hovers — Beyondspace (squarespace.com) Support me by pressing 👍 or marking as solution if this useful for you Edited January 4, 2023 by Beyondspace marleydesigns 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
marleydesigns Posted January 4, 2023 Author Posted January 4, 2023 @Beyondspace Thanks for you reply!! I entered the code as instructed and wasn't able to see any results ☹️
Beyondspace Posted January 5, 2023 Posted January 5, 2023 (edited) 3 hours ago, marleydesigns said: @Beyondspace Thanks for you reply!! I entered the code as instructed and wasn't able to see any results ☹️ Which gallery are you trying? Can you share some screenshots and leave the URL linked to it? Edited January 5, 2023 by Beyondspace BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
marleydesigns Posted January 5, 2023 Author Posted January 5, 2023 @Beyondspace The gallery section can be found by scrolling down on the 'Content' page here: https://trivium-trivia.squarespace.com/content pw:manifest I really appreciate your help!! Thank you!
Beyondspace Posted January 6, 2023 Posted January 6, 2023 20 hours ago, marleydesigns said: @Beyondspace It seems that you do not wrap my js on <script></script> You should add to Settings->Advanced->Code Injection->Footer <script> document.addEventListener('DOMContentLoaded', function() { if ( window.location === window.parent.location ) { var galleryItems = document.querySelectorAll(' .gallery-grid-item'); for (var i = 0; i < galleryItems.length; i++) { var cls = galleryItems[i].className; cls = cls.replace(/(^|s)imghvr-S+/g, ''); galleryItems[i].className = cls + " " + "imghvr-zoom-in"; } } }) </script> BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
marleydesigns Posted January 6, 2023 Author Posted January 6, 2023 4 hours ago, Beyondspace said: It seems that you do not wrap my js on <script></script> You should add to Settings->Advanced->Code Injection->Footer <script> document.addEventListener('DOMContentLoaded', function() { if ( window.location === window.parent.location ) { var galleryItems = document.querySelectorAll(' .gallery-grid-item'); for (var i = 0; i < galleryItems.length; i++) { var cls = galleryItems[i].className; cls = cls.replace(/(^|s)imghvr-S+/g, ''); galleryItems[i].className = cls + " " + "imghvr-zoom-in"; } } }) </script> Oh whoops! Okay, so I entered that code as instructed, but it's still not working. Did I enter any other code wrong, or perhaps are there specific settings I need to enable/disable for the plug in to work? I'm lost 😅 Again, I really appreciate your help!!
Beyondspace Posted January 7, 2023 Posted January 7, 2023 4 hours ago, marleydesigns said: Oh whoops! Okay, so I entered that code as instructed, but it's still not working. Did I enter any other code wrong, or perhaps are there specific settings I need to enable/disable for the plug in to work? I'm lost 😅 Again, I really appreciate your help!! Opp, my code works for gallery section (image section in fluid engine) You can consider using it BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
marleydesigns Posted January 7, 2023 Author Posted January 7, 2023 2 hours ago, Beyondspace said: Opp, my code works for gallery section (image section in fluid engine) You can consider using it ohhhh okay! my bad 😅 I added that one instead and its now working, but i'm not able to see the description now 🤔
Beyondspace Posted January 9, 2023 Posted January 9, 2023 On 1/7/2023 at 11:13 AM, marleydesigns said: ohhhh okay! my bad 😅 I added that one instead and its now working, but i'm not able to see the description now 🤔 I check that the descriptions are disable now. Have you turned it on yet? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
marleydesigns Posted January 9, 2023 Author Posted January 9, 2023 Oops, that part went right over my head. We're all good. thanks for your help, I know that was probably annoying 😆 Beyondspace 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment