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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:18:09+00:00 2026-05-28T08:18:09+00:00

I have some slide animation in css. There is any chance to keep this

  • 0

I have some slide animation in css. There is any chance to keep this effect?

#arch{
    margin-top:5%;
    width:222px;
    height:222px;
    background-image:url(img/arch.jpg);
    box-shadow:0px 0px 3px #000000;

    }

#arch:hover{
        -webkit-animation:przesuniecie 1s 1 alternate;
        }

@-webkit-keyframes przesuniecie
{
from {width:222px;}
to {width:0px;}
}
  • 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-28T08:18:10+00:00Added an answer on May 28, 2026 at 8:18 am

    I’m guessing you mean to have to the element slide away on hover, and slide out when the mouse leaves? I suggest putting the :hover on the parent element:

    *:hover > #arch{
        -webkit-animation:przesuniecie 1s 1 alternate;
    }
    
    @-webkit-keyframes przesuniecie
    {
        from {width:222px;}
        to {width:0px;}
    }
    

    Depending on what the parent element is, you may need to wrap the #arch element in a <div>.

    Also, you may need to use CSS transitions instead of CSS animations, so that the animation doesn’t abruptly end on mouseout:

    #arch{
        -webkit-transition:width 1s;
        width: 220px;
    }
    
    *:hover > #arch{
        width: 0;
    }
    

    (Don’t forget to include the other variations of the property for the other browsers)

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

Sidebar

Related Questions

I have not done much animation, and I need some help with this. I
I have made a functional CSS navigation-bar, except for some fugly CSS side-effects --
I have some jQuery animations in my code to slide divs up and down
I have a control inside a form. This show another control on top of
I have been looking into some options for creating a slide out bar for
I have so many images in a slide show and I need serve this
I have a div that I want to appear on top of some UI
I have this debug tool that used Jquery UIs dialog to display some information.
I've just been helped with some functions and callbacks to get this animation on
I have a very basic function which I am using jQuery to slide some

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.