I’m using twitter bootstrap and the fade for the close on the alert box happens faster than I would like. Is there somewhere I can change the duration of the fade or perhaps even set it on a per alert basis?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Dan Herman,
If you’re not using less and you feel like editing the bootstrap.css you may try and edit this one and not to mess around with the .js file.
Edit
and make it into…
1.25s is not the default value, that’s is just an example and if you apply that, you’ll really notice the effect and the difference.
Now, if you want to create another variant of the fade selector, lets say, “myFade”, then I think you need to modify the bootstrap-alert.js and add your new class selector or “myFade” class selector.
I don’t know yet about javascript. I just thought you need to modify the bootstrap-alert.js and insert your new class.