Giter VIP home page Giter VIP logo

Comments (10)

alademann avatar alademann commented on August 16, 2024

Thanks for the bug report. I will address this as part of the 3.0.1 release.

from bootstrap.

Ne-Ne avatar Ne-Ne commented on August 16, 2024

Thanks, I can see there is a function that does the animation. However I need a fix?

I have a feeling that max-height may work. What would you recommend?

from bootstrap.

alademann avatar alademann commented on August 16, 2024

@Ne-Ne - If your HTML markup is compliant with all the requirements shown in twbs' documentation about the collapse plugin, and you don't have any custom CSS affecting the height/max-height/etc... it should just work.

from bootstrap.

Ne-Ne avatar Ne-Ne commented on August 16, 2024

Thanks for replying @alademann . I missed there was a conflict between my JS and the transition.js file.

However I have set the HTML5 Data attr to collapse. However on document load the animation starts (opened -> closed) on every container. I would like the containers to be closed then apply the click toggle to the accordion.

-Neil

from bootstrap.

alademann avatar alademann commented on August 16, 2024

@Ne-Ne clicking on them doesn't toggle their visibility?

from bootstrap.

Ne-Ne avatar Ne-Ne commented on August 16, 2024

On page load they collapse straight away.

Don't get me wrong the animation (on toggle works fine), but as I have a lot of content within the accordion, as the initial random collapse look obvious.

Using the data attr does this enforce the collapsed element on load or is there a natural delay?

from bootstrap.

alademann avatar alademann commented on August 16, 2024

The data attribute is hooked into the collapse plugin on domReady I believe - so you would need to hard-code a css class on the containers that are present at time of load that hide that content before the collapse occurs.

from bootstrap.

Ne-Ne avatar Ne-Ne commented on August 16, 2024

That makes sense however I checked the CSS and there is height 0px and overflow hidden (I believe).

Without looking to be a pain in the arse. Would this negate the need for a hardcoded class?

Many thanks

Sent from my iPhone

On 5 Sep 2013, at 20:58, Aaron Lademann [email protected] wrote:

The data attribute is hooked into the collapse plugin on domReady I believe - so you would need to hard-code a css class on the containers that are present at time of load that hide that content before the collapse occurs.


Reply to this email directly or view it on GitHub.

from bootstrap.

alademann avatar alademann commented on August 16, 2024

Neil,

Please post an example / link to the behavior you're seeing.

from bootstrap.

Ne-Ne avatar Ne-Ne commented on August 16, 2024

I'm working off Mamp Pro, will get a copy on a subdomain in the morning (uk).

Thanks for looking into this.

Sent from my iPhone

On 5 Sep 2013, at 21:18, Aaron Lademann [email protected] wrote:

Neil,

Please post an example / link to the behavior you're seeing.


Reply to this email directly or view it on GitHub.

from bootstrap.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.