Jump to content

Transform Static Carousel List into Interactive Hoverable Cards

Recommended Posts

Posted (edited)

is it possible to enhance the user experience by converting the static carousel list into interactive hoverable cards.

Each card will dynamically respond to user interaction, creating a modern and engaging interface. Upon hovering over a card, subtle animations or transitions can be applied to highlight the selected card.

 

This is the section: 

image.thumb.png.649a2ecc2e7aaa477a64d9163d41e359.png

Here's the url: https://www.rpagroupllc.com/our-services-2

Edited by Hanara
  • Replies 4
  • Views 272
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Use this to Website Tools > Custom CSS

section[data-section-id="673969b853d6dc3619993a60"] {
li.list-item.list-item-basic-animation {
    transition: all 0.3s ease;
}
li.list-item:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
1 hour ago, tuanphan said:

Use this to Website Tools > Custom CSS

section[data-section-id="673969b853d6dc3619993a60"] {
li.list-item.list-item-basic-animation {
    transition: all 0.3s ease;
}
li.list-item:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}}

Thank you that help, last question how to make this class 'list-item'  be hoverable or act as a link as well? 

image.png

Posted

You can use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('section[data-section-id="673969b853d6dc3619993a60"] li').click(function() {
  window.location = $(this).find("a").attr("href"); 
  return false;
});
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.