From 5517f9907e5660858226b99138da36951660d564 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 21 Feb 2014 14:52:15 -0800 Subject: [PATCH] Fixes #12744: Document ability to remove animation on modals --- docs/_includes/nav-javascript.html | 1 + docs/javascript.html | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/docs/_includes/nav-javascript.html b/docs/_includes/nav-javascript.html index aeeafe2641..741b9cf810 100644 --- a/docs/_includes/nav-javascript.html +++ b/docs/_includes/nav-javascript.html @@ -14,6 +14,7 @@ diff --git a/docs/javascript.html b/docs/javascript.html index 561fc3fd9f..cc125d8328 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -298,6 +298,13 @@ $('#myModal').on('show.bs.modal', function (e) { +

Remove animation

+

For modals that simply appear rather than fade in to view, remove the .fade class from your modal markup.

+{% highlight html %} + +{% endhighlight %}

Usage

The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .modal-open to the <body> to override default scrolling behavior and generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal.