Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 254829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:52:47+00:00 2026-05-11T21:52:47+00:00

Is there a way in jQuery to animate the css3 border-radius property available in

  • 0

Is there a way in jQuery to animate the css3 border-radius property available in Webkit and Mozilla browsers?

I haven’t found a plugin that will do it.

-webkit-border-radius

-moz-border-radius
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:52:47+00:00Added an answer on May 11, 2026 at 9:52 pm

    I originally expected that something like…

    $("selector")
      .css({borderRadius: 10});
      .animate({borderRadius: 30}, 900);
    

    …would work. But, I was wrong: Webkit allows you to set the value for all four corners via borderRadius, but won’t let you read it back – so with the code above, the animation will always start at 0 instead of 10. IE has the same problem. Firefox will let you read it back, so everything works as expected there.

    Well… border-radius has sort of a history of implementation differences.

    Fortunately, there’s a work-around: just specify each corner radius individually:

    $("selector")
      .css({
        borderTopLeftRadius: 10, 
        borderTopRightRadius: 10, 
        borderBottomLeftRadius: 10, 
        borderBottomRightRadius: 10 })
      .animate({
        borderTopLeftRadius: 30, 
        borderTopRightRadius: 30, 
        borderBottomLeftRadius: 30, 
        borderBottomRightRadius: 30}, 900);
    

    Note that if you wish to maintain compatibility with older browsers, you can go all-out and use the old browser-prefixed names:

    $("selector")
      .css({
        borderTopLeftRadius: 10, 
        borderTopRightRadius: 10, 
        borderBottomLeftRadius: 10, 
        borderBottomRightRadius: 10,
        WebkitBorderTopLeftRadius: 10, 
        WebkitBorderTopRightRadius: 10, 
        WebkitBorderBottomLeftRadius: 10, 
        WebkitBorderBottomRightRadius: 10, 
        MozBorderRadius: 10 
      })
      .animate({
        borderTopLeftRadius: 30, 
        borderTopRightRadius: 30, 
        borderBottomLeftRadius: 30, 
        borderBottomRightRadius: 30,
        WebkitBorderTopLeftRadius: 30, 
        WebkitBorderTopRightRadius: 30, 
        WebkitBorderBottomLeftRadius: 30, 
        WebkitBorderBottomRightRadius: 30, 
        MozBorderRadius: 30 
      }, 900); 
    

    This starts to get pretty crazy though; I would avoid it if possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to animate in Jquery without specifying every property? Lets, say:
Is there a jquery way or plugin to detect the visitor's browser window size
Is there a way to do the following in jQuery: Animate DIV to left:
is there a way to add a css3 animation upon a jQuery event for
Is there any way to emulate a scroll type option using jquery animate? Right
Is there any way i can animate a div using percentages with jquery? I've
Is there a way to stop a property from animating with jquery. I tried
Is there a way to use jquery.animate to load a page with ajax and
Is there a way with jQuery to load Html contents from a url? For
Is there a way in jQuery to know if an element already has an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.