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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:44:27+00:00 2026-05-28T20:44:27+00:00

I have an image thumbnail with a light colored border which, on mouseover, I

  • 0

I have an image thumbnail with a light colored border which, on mouseover, I want to crossfade to a dark colored border. I’m thinking that the easiest way to achieve this would be to fade in a second div with a darker border over the existing one.

Is there a better or different way to fade in a border color change?

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-28T20:44:27+00:00Added an answer on May 28, 2026 at 8:44 pm

    Load the jQuery UI into your page. Included with the core package (if I’m not mistaken; you may need to customize your download package) is the ability to use jQuery’s .animate() on color values (and/or transitions between two CSS classes). This is something absent from the core jQuery library out-of-the-box.

    With that, you can just do something as menial as the following:

    // e.g. assuming #foo has default border-color #999999
    $('#foo').on('mouseover', function () {
        $(this).animate({
            borderColor : "#333333"
        });
    });
    

    Modify according to your interests.

    EDIT

    The easiest way to implement this would be to leverage CSS itself, and just use jQuery to toggle between CSS rules.

    #foo { border-color:#999; }
    #foo.hovering { border-color:#333; }
    

    Then you can just transition using jQuery UI’s extended jQuery functions:

    $('#foo').hover(
        function () {
            // this is on mouseover
            $(this).addClass('hovering', 'fast');
        },
        function () {
            // this is on mouseout
            $(this).removeClass('hovering', 'fast');
        }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this script at the moment, which changes an image when a thumbnail
I have photo gallery code that does image re-sizing and thumbnail creation. I use
I have 7 thumbnail image menus.when user points (mouseover) to a particular thumbnail, I
I have a thumbnail image that when you click it changes a larger image
I have a thumbnail image that when clicked changes a larger image on the
I have a script which at one point returns an image thumbnail using jquery
On my server, I have three files per image. A thumbnail file, which is
I have taken thumbnail image from gallery which is smaller in size and resized
I have a image thumbnail function that basically just re-sizes the image and outputs
I want to crop a thumbnail image in my Django application, so that I

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.