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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:22:44+00:00 2026-05-24T18:22:44+00:00

CSS3 transitions are great! So far, I’m triggering them with :hover or :active declarations

  • 0

CSS3 transitions are great! So far, I’m triggering them with :hover or :active declarations in the stylesheet. I’m looking to see if there’s a way to trigger them from jquery.

For instance:

#MyDiv{
border:1px solid red;
background:blue;
transition: all 0.3s linear;
}

MyDiv:hover{
border:1px solid black;
background:yellow;
}

The :hover transition will trigger when the mouse moves over MyDiv but what I’m looking to do is something like:

$('#MyDiv').transition(hover); //that would be ideal

In other words, I’d like to trigger the css animation so that if I mouseover some other div, the #MyDiv animation will trigger with $('#SomeOtherDiv').mouseenter(function () { $('#MyDiv').transition(hover); });

The jquery animate function doesn’t support color transitions and while I know you can add jqueryUI plugins to make it work, I was wondering if there’s some way to make it work without, using jquery to call the css transition.

  • 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-24T18:22:45+00:00Added an answer on May 24, 2026 at 6:22 pm
    #MyDiv {
        border:1px solid red;
        background:blue;
        transition: all 2.0s linear;
        -webkit-transition: all 0.3s linear;
        -moz-transition: all 0.3s linear;
        -ms-transition: all 0.3s linear;
        -o-transition: all 0.3s linear;
    }
    
    .hover{
        border:1px solid black;
        background:yellow;
        transition: all 2.0s linear;
        -webkit-transition: all 0.3s linear;
        -moz-transition: all 0.3s linear;
        -ms-transition: all 0.3s linear;
        -o-transition: all 0.3s linear;
    }
    
    $("#MyOtherDiv")
    .mouseenter(function(){
        $("#MyDiv").addClass("hover");
    })
    .mouseleave(function(){
        $("#MyDiv").removeClass("hover");
    });
    
    • 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 have CSS3 transitions/animations for a div that's just been
Is there a way to detect whether a browser supports CSS3 transitions ( -webkit-
I'm getting warnings about CSS3.0 properties like text-overflow. Is there a way to validate
Is there a javascript framework out there that will use CSS3 Transitions for effects
I've just been experimenting with a CSS tooltip that fades in with CSS3's transitions.
The thing I hate most in CSS3 is that there is always two properties
So I have a few hover links and I'm using the css3 transition effect
Are there any events fired by an element to check whether a css3 transition
I am looking to use Webkit CSS3 to move a absolutely positioned DIV from
I have a navigation menu that has links with CSS3 transitions with a speed

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.