Jump to content

How Can I Round The Corners of a square shape when I hover over it?

Recommended Posts

  • Replies 1
  • Views 865
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

you probably will want to dynamically set the styling property "border-radius: n%;"
You can do this with CSS:
 

.your-element-class:hover {
  border-radius: 25%;
}

I would need more context to help further, such as type of element that the shape is. is it a div? and the environment it is in, is it dynamically created with JS or placed upfront, etc.
Additionally you may want:
 

.your-element-class:hover {
  border-radius: 25%;
  pointer-events: auto;
  cursor: pointer;
}

 

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.