Jump to content

Custom button design and rollover

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 13
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
55 minutes ago, brendanpeer said:

Site URL: https://uk.thenueco.com/pages/survey

Hi 

Does anyone know if it's possible to have customs buttons like the below example?

https://uk.thenueco.com/pages/survey

Thanks 

Do you mean this effect when hovering this menu?

image.thumb.png.724b6443843cbfbdb66475997a94caef.png

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

Posted
On 1/17/2022 at 11:13 PM, brendanpeer said:

Or id even take just the custom border with out the roll over of that's easier 

Possible. If you share link to page where you want to apply effect, we can tweak above code on your site easier

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
20 hours ago, brendanpeer said:

Hi,

For all buttons site wide

Thanks 

Try add to Design > Custom CSS (header button)

a.btn:hover:before {
    content: "";
    position: absolute;
    top: -25px;
    left: -35px;
    right: -40px;
    bottom: 0;
    display: block;
    background-image: url(//cdn.shopify.com/s/files/1/0253/3661/0863/t/61/assets/icon-sketch-circle.svg?v=1365897…);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
}
a.btn:hover {
    background-color: Transparent !important;
    color: black !important;
    border: none !important;
}

 

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!)

  • Solution
Posted
On 1/22/2022 at 7:37 PM, brendanpeer said:

Oh yeah amazing, can it be site wide?

Thanks so much for your help here

It just a test code for header button.

Use this new code for header button, button blocks button

a.btn:hover:before, .button-block a:hover:before {
    content: "";
    position: absolute;
    top: -25px;
    left: -35px;
    right: -40px;
    bottom: 0;
    display: block;
    background-image: url(//cdn.shopify.com/s/files/1/0253/3661/0863/t/61/assets/icon-sketch-circle.svg?v=1365897…);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
}
a.btn:hover, .button-block a:hover {
    background-color: Transparent !important;
    color: black !important;
    border: none !important;
}
.button-block a {
    display: inline-block;
    position: relative;
}

Currently I only see these 2 types of buttons on your site. If you use other types (list button, image block button, input button..) you can share link to page where you added them, I can check code eaiser

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.