Comments (10)
Thanks for the bug report. I will address this as part of the 3.0.1 release.
from bootstrap.
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.
@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.
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.
@Ne-Ne clicking on them doesn't toggle their visibility?
from bootstrap.
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.
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.
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.
Neil,
Please post an example / link to the behavior you're seeing.
from bootstrap.
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)
- Is there a need to have compass and grunt? HOT 5
- Navbar layout glitch HOT 1
- error with mixins.scss is anyone else getting this? HOT 6
- Inconsistencies with original Bootstrap 3 HOT 5
- Upgrade to 3.1.0? HOT 3
- Wrong mixing name HOT 1
- Why does this exist? HOT 3
- What version of twitter bootstrap is used in release 3.0.16? HOT 1
- Missing Mobile Media Queries HOT 9
- gem HOT 2
- Feature Request: prefix to bootstrap classes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap.