Rare
  • Introduction
  • HTML
    • Introduction
    • Html Structure
      • Header
      • Left Side Menu
      • Main Content
    • Main Content
      • Buttons
      • Fonts
      • Lock Screens
      • Maps
      • Modals
      • Plugins Used
      • Progress Bars
    • Css Files
    • Java Script Used
    • Scss
    • Fonts Used
    • Images used
    • Starts New page
      • Centered Logo
      • Compact Menu
      • Default
      • Horizontal
      • Light Side Bar
      • Mmenu
  • Rare Builder
    • Layouts
      • Default
      • Centered Logo
      • Compact Menu
      • Fixed Menu
      • Fixed Header
      • Horizontal
      • Icon Horizontal
      • Dark
      • Full Width
      • Header Style
      • Fixed Footer
      • Mmenu
      • Light Sidebar
    • Macros
      • Layouts
      • Breadcrumb
    • Partials
      • Headers
        • Header
        • Centered Logo Header
      • Heads
        • Head
      • Breadcrumbs
        • Breadcrumb 1
        • Breadcrumb 2
        • Breadcrumb 3
        • Breadcrumb 4
        • Breadcrumb 5
        • Breadcrumb Default
      • Ends
        • End
      • Menus
        • Default
        • Horizontal
        • Icon Horizontal
        • Compact
        • Mmenu
      • Footer
        • Footer
        • Fixed Footer
      • Messages
      • Notifications
      • User Profile
    • Add Builder
    • Commands
    • New Page
  • FAQ
    • Change Left Menu Content
    • Setting Layout As Default
    • Change Breadcrumb
    • Change Colors In scss
Powered by GitBook
On this page

Was this helpful?

  1. HTML
  2. Main Content

Modals

PreviousMapsNextPlugins Used

Last updated 5 years ago

Was this helpful?

This feature is found in the page of this Template.

There are Nine different kinds of modals included in the above mentioned page. Upon clicking on each button a pop up with different fashion appears on the screen.

1) Basic Modals

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal

<button type="button" class="btn btn-secondary mr-2 mt-2" data-toggle="modal" data-target="#basic_modal1">Basic modal
 </button>

Modal Syntax:

<div class="modal fade" id="basic_modal1" tab-index="-1" role="dialog" aria-hidden="true">
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

2) Modal with alerts:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button type="button" class="btn btn-info mr-2 mt-2" data-toggle="modal" data-target="#alert_modal1">Info</button>

Modal Syntax:

<div class="modal fade" id="alert_modal1" tab-index=-1 role="dialog" aria-hidden="true" >
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

3) Background Variations:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button type="button" class="btn btn-primary mr-2 mt-2 dropback1" data-toggle="modal" data-target="#dropback1">Backdrop None</button>

Modal Syntax:

<div class="modal fade" id="dropback1" tabindex="-1" role="dialog" aria-labelledby="dropbackmodal1" aria-hidden="true">
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

4) Aside:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button type="button" class="btn btn-primary mt-2 mr-2" data-toggle="modal" data-target="#aside1">Top</button>

Modal Syntax:

<div class="modal fade" id="aside1" tabindex="-1" role="dialog" aria-labelledby="asidemodal1" aria-hidden="true">
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

5) Animated Modals:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button type="button" class="btn btn-primary mr-2 mt-2 fadein" data-toggle="modal" data-target="#fadein">Fade In</button>

Modal Syntax:

<div class="modal" id="fadein" tabindex="-1" role="dialog" aria-hidden="true">
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

6) Simple Transition Effects:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button type="button" class="btn btn-mint mr-2 mt-1 flipinx" data-toggle="modal" data-target="#flipinx">Flip In X</button>

Modal Syntax:

<div class="modal" id="flipinx" tabindex="-1" role="dialog" aria-hidden="true">
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

7) 3D Effects:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button class="btn btn-raised btn-success mr-2 mt-2" data-toggle="modal" data-target="#modal_3d1">3D Expand Open </button>

Modal Syntax:

<div class="modal expandOpen" id="modal_3d1" tabindex="-1" role="dialog"  aria-hidden="true">
     <div class="modal-dialog modal-lg">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

8) Fullwidth Modals:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button class="btn btn-raised btn-purple mr-2 mt-2 pulldown" data-toggle="modal" data-target="#pulldown">Pull Down </button>

Modal Syntax:

<div class="modal expandOpen" id="modal_3d1" tabindex="-1" role="dialog"  aria-hidden="true">
     <div class="modal-dialog modal-lg" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

9) 3D Effects:

It has the following Structure:

This is the syntax for the button and with the click on a button, the control goes to the code shown below to display the modal.

<button class="btn btn-raised btn-warning mr-2 mt-2" data-toggle="modal" data-target="#responsive">Responsive</button>

Modal Syntax:

<div class="modal pullDown " id="responsive" tabindex="-1" role="dialog" aria-hidden="true">
     <div class="modal-dialog" role="document">
          <div class="modal-content">
           ....
           ....
          </div>
      </div>
</div>

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

We can learn more about modals at .

Modals
Modals
Modals
Modals
Modals
Modals
Modals
Modals
Modals
modals.html