"full modal"
Bootstrap 3.0.0 Snippet by evarevirus

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="flex">
<a href="#">+</a>
<div class="modal">
<div class="inner-modal">
<div class="content">
<h1>Modal Content</h1>
<p>Pretty nifty.</p>
</div>
</div>
</div>
</div>
<script>
document.querySelector('a').addEventListener('click', function(e) {
e.preventDefault();
this.classList.toggle('opened');
});
</script>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url('https://fonts.googleapis.com/css?family=Pacifico|Open+Sans:300');
* {
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
}
h1 {
font-family: 'Pacifico', cursive;
font-weight: 400;
font-size: 2.5em;
margin-bottom: 0;
}
.flex {
display: flex;
}
a:link,
a:hover,
a:visited,
a:active {
display: block;
text-decoration: none;
color: #fefefe;
font-size: 2em;
width: 50px;
height: 50px;
text-align: center;
line-height: 50px;
border-radius: 50%;
background: #29B6F6;
position: fixed;
z-index: 2;
top: calc(100% - 75px);
left: calc(100% - 75px);
transform-origin: 50%;
transform: rotate(90deg);
transition: all .5s ease;
backface-visibility: hidden;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: