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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:55:51+00:00 2026-06-15T19:55:51+00:00

I have a list with events, an onhover animation sequence takes place. and finally

  • 0

I have a list with events, an onhover animation sequence takes place. and finally social icons show up. When I hover over the social icons the mouse leave event triggers on the other sibling and the social buttons disappear.

Here is the source code:

<li>
    <a href="/events/Festival/testing+2-2">
        <div class="upcoming-event" style="background-color: rgb(255, 255, 255);">
            <div class="ue-content">
                <div class="ue-category" style="height: 20px; background-color: rgb(255, 255, 255);"><span><h5>Festival</h5></span></div>
                <img src="http://www.domain.gr/image.php?source=events%2Fce06e21958cd6e9d8c5da37a7f7bf9e9%2Fimages%2Fdefault%2F34-rvca-flyer.jpg&amp;w=150&amp;h=220&amp;out=raw" alt="Event photo">
                <div class="ue-corner" style="width: 0px;"></div>
                <div class="slider" style="height: 50px;">
                    <div class="ue-title"><span><h5 style="padding:5px;">testing 2</h5></span></div>
                    <div class="ue-info"><span>ffs</span></div>
                </div>
            </div>
        </div>
    </a>
    <div class="add-this" style="display: none;">

    <div class="addthis_toolbox addthis_default_style">
    <a class="addthis_button_preferred_1 addthis_button_facebook at300b" addthis:title="testing 2" addthis:description="ffs" addthis:url="http://www.domain.gr/events/Festival/testing+2-2" title="Facebook" href="#"><span class="at16nc at300bs at15nc at15t_facebook at16t_facebook"><span class="at_a11y">Share on facebook</span></span></a>
    <a class="addthis_button_preferred_2 addthis_button_twitter at300b" addthis:title="testing 2" addthis:description="ffs" addthis:url="http://www.domain.gr/events/Festival/testing+2-2" title="Tweet This" href="#"><span class="at16nc at300bs at15nc at15t_twitter at16t_twitter"><span class="at_a11y">Share on twitter</span></span></a>
    <a class="addthis_counter addthis_bubble_style" style="display: block;" href="#"><a class="addthis_button_expanded" target="_blank" title="View more services" href="#">0</a><a class="atc_s addthis_button_compact"><span></span></a></a>
    <div class="atclear"></div></div>



    </div>
</li>

I would like to stop the animation when I hover over the social icons.

Here is the JavaScript

var upcomingEvents = 0;
var addthisOver = false;
function fetchEvents(poffset, plimit, uoffset, ulimit){

        //console.log(poffset + ' - ' + plimit + ' - ' + uoffset + ' - ' + ulimit)

        var request = $.ajax({
          url: "/fetch_events.php",
          type: "POST",
          data: {
                'poffset': poffset,
                'plimit' : plimit,
                'uoffset': uoffset,
                'ulimit' : ulimit
                },
          dataType: "json"
        })

        request.done(function(msg)
        {
            //console.log(msg)

            if(msg != null && typeof(msg['promoted'])=='object' && (msg['promoted'] instanceof Array))
            {
                handleEvents(msg['promoted'], msg['promoted'].length, 'promoted');

            }
            if(msg != null && typeof(msg['upcoming'])=='object' && (msg['upcoming'] instanceof Array))
            {
                upcomingEvents = parseInt(upcomingEvents + msg['upcoming'].length);
                handleEvents(msg['upcoming'], msg['upcoming'].length, 'upcoming');
            }
        })

        request.fail(function(jqXHR, textStatus) {
            //alert( "Error: " + jqXHR.responseText );
            //console.log(jqXHR.responseText);
            //console.log(jqXHR.statusText);
            //console.log(textStatus);
            //console.log(jqXHR);
        })

        request.complete(function(){
            //console.log("Ajax request complete!");
        })


}

$(document).ready(function(){
    $("#more-upcoming-events").click(function(){
        new fetchEvents(0,4,upcomingEvents,8);
    });
});


function handleEvents(data, num, type)
{

    var html = '';

    for(i = 0; i < num; i++)
    {
        html += data[i];
    }

    if(type == 'upcoming')
    {


            $('.add-this').mouseenter(function(){
                addthisOver = true;
            })

            $('.add-this').mouseleave(function(){
                addthisOver = false;
            })

        $("#upcoming-event").off();

        $("#upcoming-events").append(html);

        $('.upcoming-event').mouseenter(function(){
            $(this).find('div.ue-category').stop(true,true).animate({height:'0px',queue:false},100);
            $(this).stop(true,true).delay(100).animate({backgroundColor:'#a00000',queue:false},250);
            $(this).find('div.slider').stop(true,true).delay(350).animate({height:'221px',queue:false},250);
            $(this).find('div.ue-corner').stop(true,true).delay(600).animate({width:'58px',queue:false},100);   //58
            $(this.parentNode.parentNode).find('div.add-this').delay(700).fadeIn(100);
        });

        $('.upcoming-event').mouseleave(function(event){


            /*
            trg = $(this.parentNode.parentNode).find(event.target);

            if(event.target != trg[0])
            {

            }
            */

            if(addthisOver == false)
            {
                $(this.parentNode.parentNode).find('div.add-this').fadeOut(100);
                $(this).find('div.ue-corner').delay(100).animate({width:'0px',queue:true},100);
                $(this).find('div.slider').delay(200).animate({height:'50px',queue:true},250);
                $(this).delay(450).animate({backgroundColor:'#ffffff',queue:true},250);
                $(this).find('div.ue-category').delay(700).animate({backgroundColor:'#ffffff',height:'20px',queue:true},100);
            }           
        });

    }
    else if(type == 'promoted')
    {
        var cells = '';
        for(y = 0; y < parseInt(4 - num); y++)
        {
            cells += '<td valign="top"></td>';
        }

        var tableHTML = '<table cellpadding="0" cellspacing="0"><tr>' + html + cells + '</tr></table>';
        $("#top-events-table").html(tableHTML); 
    }

}
  • 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-06-15T19:55:52+00:00Added an answer on June 15, 2026 at 7:55 pm

    Try these instead:

    $('.upcoming-event').mouseover(function(){
    
    $('.upcoming-event').mouseout(function(event){
    

    EDIT: Actually, I see what your problem is — your “add-this” div with your social icons are outside the “upcoming-event” div, causing mouseleave to fire. Move the “add-this” div inside the “upcoming-event” div and you should be good to go.

    <li>
    
            <div class="upcoming-event" style="background-color: rgb(255, 255, 255);">\
              <a href="/events/Festival/testing+2-2">
                <div class="ue-content">
                    <div class="ue-category" style="height: 20px; background-color: rgb(255, 255, 255);"><span><h5>Festival</h5></span></div>
                    <img src="http://www.evented.gr/image.php?source=events%2Fce06e21958cd6e9d8c5da37a7f7bf9e9%2Fimages%2Fdefault%2F34-rvca-flyer.jpg&amp;w=150&amp;h=220&amp;out=raw" alt="Event photo">
                    <div class="ue-corner" style="width: 0px;"></div>
                    <div class="slider" style="height: 50px;">
                        <div class="ue-title"><span><h5 style="padding:5px;">testing 2</h5></span></div>
                        <div class="ue-info"><span>ffs</span></div>
                    </div>
                </div>
              </a>
                <div class="add-this" style="display: none;">
                    <div class="addthis_toolbox addthis_default_style">
                        <a class="addthis_button_preferred_1 addthis_button_facebook at300b" addthis:title="testing 2" addthis:description="ffs" addthis:url="http://www.evented.gr/events/Festival/testing+2-2" title="Facebook" href="#"><span class="at16nc at300bs at15nc at15t_facebook at16t_facebook"><span class="at_a11y">Share on facebook</span></span></a>
                        <a class="addthis_button_preferred_2 addthis_button_twitter at300b" addthis:title="testing 2" addthis:description="ffs" addthis:url="http://www.evented.gr/events/Festival/testing+2-2" title="Tweet This" href="#"><span class="at16nc at300bs at15nc at15t_twitter at16t_twitter"><span class="at_a11y">Share on twitter</span></span></a>
                        <a class="addthis_counter addthis_bubble_style" style="display: block;" href="#"><a class="addthis_button_expanded" target="_blank" title="View more services" href="#">0</a><a class="atc_s addthis_button_compact"><span></span></a></a>
                        <div class="atclear"></div>
                    </div>
                </div>
            </div>
    </li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of events for example I wanna show on a page
I have a list of elements describing events that took place at some time,
I have simple link list and when you hover over it it appends a
If I have a list of events taking place in a given month like:
I have a list of events that I wish to store the starting and
I have a slide show built with jQuery that pauses on hover. It has
I have a List in my smalltalk application that gets updated by user events.
I have a list of events, these events are each of a specific type,
I have a list of events that have a date. I'm trying to count
I have an Events list in sharepoint and need to disallow users from having

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.