dafi Posted March 31, 2021 Share Posted March 31, 2021 Site URL: https://www.dafidesign.co.uk/ I have two images that act as a way to select between two options. They both contain an anchor link to a contact form on the same page (below). Could someone please provide the code to make each image 'levitate' slightly as a hover effect. I found an example of this for grid summary blocks here: https://www.ghostplugins.com/steps/quh49fn7 Is this possible for an image? Thanks - Finn Link to comment
Beyondspace Posted March 31, 2021 Share Posted March 31, 2021 55 minutes ago, dafi said: Site URL: https://www.dafidesign.co.uk/ I have two images that act as a way to select between two options. They both contain an anchor link to a contact form on the same page (below). Could someone please provide the code to make each image 'levitate' slightly as a hover effect. I found an example of this for grid summary blocks here:https://www.ghostplugins.com/steps/quh49fn7 Is this possible for an image? Thanks - Finn try section[data-section-id="604106273a03c437519c17db"] .sqs-block-image { transition: box-shadow .5s, transform .5s; } section[data-section-id="604106273a03c437519c17db"] .sqs-block-image:hover { box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.1); transform: translateY(-10px); } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
dafi Posted April 1, 2021 Author Share Posted April 1, 2021 11 hours ago, bangank36 said: try section[data-section-id="604106273a03c437519c17db"] .sqs-block-image { transition: box-shadow .5s, transform .5s; } section[data-section-id="604106273a03c437519c17db"] .sqs-block-image:hover { box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.1); transform: translateY(-10px); } Thank you so much for this! Really appreciate the help. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.