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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:48:20+00:00 2026-06-03T02:48:20+00:00

This one has completely stumped me. I tweaked my css so regular bootstrap modals

  • 0

This one has completely stumped me. I tweaked my css so regular bootstrap modals just fade in without sliding by changing the start and end locations to be the same:

.modal.fade.in {
    top: 50%;
}
.modal {
    top: 50%;
}

That resulted in a nice gradual appearance in place.

I want to achieve the same effect for image gallery modals created by Bootstrap Image Gallery, which extends bootstrap’s modal.js. It can be found here. While it’s very appealing in terms of functionality, over the course of the week i’ve played with the js and css all to no avail to simplify the transitions. For the life of me i can’t figure out how to have each image fade in, but in place rather than sliding down or across, which is really distracting.

All i’ve been able to do is remove the ‘fade’ class to eliminate the transition completely. I would have thought that the css changes i’d made for the other modal would have also been applied to the gallery modals, but they aren’t. I’ve walked through the source code for bootstrap.js as well, can’t figure it out. I’m not a complete nube, but far from a js/css expert and need a hand here. 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-06-03T02:48:21+00:00Added an answer on June 3, 2026 at 2:48 am

    I would start with Chrome developer tools or Firebug to see why your CSS rule is being overwritten. On a mac with Chrome, hold down control and click the the mouse/scroll box when you are on top of the element you want to inspect (this will open a dialog where you will click “inspect Element”). This will then open the developer tools which will have in blue highlight the element you clicked, in this case the .modal-gallery.

    I just checked the source code on this modal-gallery and noticed in the CSS that
    this code in bootstrap.min.css:682:

    .modal.fade.in {
       top: 50%;
    }
    

    can be overwritten upon resizing the screen by the following code in bootstrap.responsive.css:10:

    modal.fade.in {
      top: auto;
    }
    

    Another suggestion is to check the bootstrap-image-gallery.css file since the gallery has a .modal-gallery class applied to it that is not present in Twitter Bootstrap itself.

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

Sidebar

Related Questions

Regex is absolutely my weak point and this one has me completely stumped. I
This one has me stumped. <div id=container> <div id=store></div> <div id=contact></div> </div> I'm looking
This one has me stumped. Here are the relative bits of code: public AgencyDetails(Guid
This one has me stumped. I need to call an activity method from within
This one has me stumped. I have two Windows installations of PHP: 32-bit on
I have to admit I am COMPLETELY stumped on this one. I've been scouring
I'm completely stumped on this one, being trying for hours but with no success,
This one has been stumping me for a while. But I'm no expert. This
This one has me scratching my head, so I'm hoping a second pair of
This one has proven to be a little tricky for me so far. 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.