Jump to content

Animation on mouseover in custom code block

Recommended Posts

Hi there, I am working with a custom code block that has various membership options in different cards, and hoping to create a collapsible overlay with the features similar to this (but not with summary blocks): https://ghostpluginssuper.squarespace.com/pokit-summary-block/?password=ghost

So far I have some javascript in place to make a simple animation happen on mouseover, but I'm not sure how to get a part of the text content to jump up. Any tips would be appreciated. 

Site url: https://www.youbelongsd.com/membership-page

Hey, I'm Jin (he/him). I'm a front end dev learning to make custom sites in Squarespace.

If you find my suggestions helpful, please upvote & like!😺

 

Link to comment
4 hours ago, jinlikegold said:

Hi there, I am working with a custom code block that has various membership options in different cards, and hoping to create a collapsible overlay with the features similar to this (but not with summary blocks): https://ghostpluginssuper.squarespace.com/pokit-summary-block/?password=ghost

So far I have some javascript in place to make a simple animation happen on mouseover, but I'm not sure how to get a part of the text content to jump up. Any tips would be appreciated. 

Site url: https://www.youbelongsd.com/membership-page

I think we can achieve this layout via the people section have some css code to custom the action of hovering.

image.thumb.png.a4c60bcb8461c0b619683da48cb2b88b.png

 

image.thumb.png.a0ba9955aba48f86567f9764e7485934.png

Edited by Beyondspace

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 12/2/2022 at 7:51 PM, Beyondspace said:

I think we can achieve this layout via the people section have some css code to custom the action of hovering.

image.thumb.png.a4c60bcb8461c0b619683da48cb2b88b.png

 

image.thumb.png.a0ba9955aba48f86567f9764e7485934.png

Your comment was a little confusing, but it helped me realize I could add a div and hidden overflow, and animate it to jump up on hover. Thanks! 

Hey, I'm Jin (he/him). I'm a front end dev learning to make custom sites in Squarespace.

If you find my suggestions helpful, please upvote & like!😺

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.