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 7670993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:56:51+00:00 2026-05-31T15:56:51+00:00

I have an image that’s a circle and when someone hovers over it, i

  • 0

I have an image that’s a circle and when someone hovers over it, i want it to animate and elongate horizontally, but i want it to stretch only the center of the image while maintaining the curves on the left/right. so something like this

enter image description here

i apologize for my terrible paint skills.
if this isn’t possible with a simple css setting or something, are there any alternative ways to animate a circle into this?

thanks

  • 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-31T15:56:53+00:00Added an answer on May 31, 2026 at 3:56 pm

    You will use 3 images. One each for the sides, encompassing the curves, then a middle image that is only as wide as you need it to be. You will use these images as background images inside of their own divs, and the middle image you want to make it repeat-x for as big as you need it to be, both for before the animation, and when it transitions. Remember to set the width and height for each div or they will collapse, as they are technically empty. You also need to float your divs to the left and make sure there is no padding or margins or you will get gaps.
    Try this css:

    #div1 {
       background-image:url(leftcurve.png);
       background-repeat:no-repeat;
       width:15px;
       height:100px;
       float:left;
       padding:0;
       margin:0;
     }
     #div2 {
       background-image:url(middle.png);
       background-repeat:repeat-x;
       width:15px;
       height:100px;
       float:left;
       padding:0;
       margin:0;
    }
    #div3 {
       background-image:url(rightcurve.png);
       background-repeat:no-repeat;
       width:15px;
       height:100px;
       float:left;
       padding:0;
       margin:0;
    

    }

    Then just call your divs in regular html. Using JQuery to animate is a great solution for animation as you get nice transitions. What you want to do is tell JQuery to only animate the middle div, on hover, by making the width change to whatever you need it to be, from, say 15px to 100px or whatever.

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

Sidebar

Related Questions

I want to have an image that would initially be black and white, but
I have an image that is too big and I want to put it
I have an image that I want to resize on my websites rendering using
I have image data and i want to get a sub image of that
I am using GWT 2.03 and am have an image that I want to
I have a image that I create using PHP and I want my end
I have an image that is 100 X 100, and want to center it
I have an image that the user can zoom/scroll. I want to draw some
I have image that needs to be scrolled in uiscrollview but scrolling needs to
I have an image that, when hovered over, should display another image with 4

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.