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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:58:40+00:00 2026-06-07T00:58:40+00:00

Since regular jQuery animations are not fluent on iOS ( .hide() , slideDown() ),

  • 0

Since regular jQuery animations are not fluent on iOS (.hide(), slideDown()), I’m attempting to turn my shorthand .fade() and .slideDown() functions into the longhand .animate() functions, so I can then use jQuery.Animate plugin to convert these animations to CSS3, while mainiting a jQuery fallback.

I think fading a div using this method should be easy, but attempting to have a div slide down from the center is giving me a headache.

The normal CSS for the div is…

.zip{
    width:130px;
    height:70px;
    left:50%;
    top:50%;
    margin-top:-46px;
    margin-left:-76px;
    position: absolute;
    text-align: center;
    z-index: 2;
    background:rgba(0,155,23,.8) url(overlay.png);
    border-radius: 10px;
    padding:10px;
    border:1px solid #fff;
    box-shadow:0 0 40px #000;
} 

And then I was using the following to delay, then have the div slide down…

$(".zip").delay(1000).slideDown(200);

This works fine, obviously, but it won’t be picked up by the plugin.

So, how could I turn that into a function using .animate()?

My attempt:

CSS…

.zip{
    display:none;
    height:0;
    padding:0;
    /* Plus everything else */
} 

jQuery…

$('.zip').delay(1000).animate({
    display: "block",
    height: "70px",
    padding: "10px",
});

Except this is sliding down from the lefthand corner, not the middle.

Also, maybe I’m doing this completely wrong, and there’s a much better way to use the CSS3 accelerated transitions on iOS devices while still providing a jQuery fallback, in which case, please share!

  • 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-07T00:58:41+00:00Added an answer on June 7, 2026 at 12:58 am

    Animate the width and margin-left as well. Alternatively, you could animate only the width and set the margin to auto (which means centered horizontally)

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

Sidebar

Related Questions

I'm guessing it's not a Perl Compatible Regular Expression, since there's a special kind
since regular exressions are not supported in Cocoa I find RegexKitLite very usefull. But
Since I got multiple classes and utility-functions I reuse on a regular basis, I
Been a long time since I have touched regular expressions. It's simple but I
It's been several years since I have used regular expressions, and I was hoping
Since Regular Expressions seem to accept only string, the most common way to search
I'm getting more into jQuery and so have set up a HTML/Javascript/CSS base site
I am trying to first find a div using a regular expression (since its
Recently, I started using the email validation regular expression from the JQuery validation plugin
I find myself needing to use Perl more and more since PHP's regular expressions

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.