Modal

by Khadeer Mohammed

HTML

<link rel="stylesheet" href="https://semantic-ui.com/dist/semantic.min.css">
<script src="https://semantic-ui.com/dist/semantic.min.js"></script>
<div class='ui button green test'>Click Me without move scroll</div>

<div class='ui button green test2'>Click Me with scroll move</div>

<div class="ui modal test">
  <div class="header">Header</div>
  <div class="content">
    <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    </p>
    <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    </p>
    <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release...

CSS

body {
  padding: 1em;
}

JavaScript

$('.test.modal')
  .modal('attach events', '.test.button', 'show')
;
$('.test2.modal')
  .modal('attach events', '.test2.button', 'show')
;